如何防止 jQuery-UI 移动 +调整图像大小以免占用更多空间?
我的页面上有一堆图像,我使用 jQuery-UI 来允许移动和调整大小。它看起来很棒,但有一个主要副作用:每当调整移动图像的大小时,它的原始位置也会调整大小,从而将其他图像推到原来的位置。
我理解其背后的逻辑(从文档的 POV 来看,图像仍位于其原始位置),但是有没有办法防止这种视觉上令人不安的行为?可能是我错过了 jQuery-UI 选项?或者限制原始空间增长/收缩的方法?
感谢您抽出时间!
I have a bunch of images on the page, that I use jQuery-UI to allow moving around and resizing. It looks great, with one major side effect: whenever a moved image is resized, it's original location is resized as well, pushing the other images out of place.
I understand the logic behind it (from the document's POV, the image is still in its original location), but is there a way to prevent this visually-disturbing behavior? Possibly a jQuery-UI option I've missed? Or a way to restrict the original space from growing/shrinking?
Thanks for your time!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我猜这里没有答案。将尝试克隆图像并在其位置留下原始图像。管理起来会很麻烦,但我仍然没有看到一个简单的解决方案。
Guess there are no answers here. Will attempt to clone the images and leave an original at its place. Will be a hassle to manage, but I still don't see a simple solution.