GWT PopupPanel imgAreaSelection 滚动不起作用
我正在使用带有图像的 GWT PopupPanel
。我使用 jQuery 将 imgAreaSelect
添加到面板加载的图像中。
当我不滚动主窗口时,裁剪工作绝对正常。但是,如果我滚动主窗口,选择就会中断(imgAreaSelect
对象的区域似乎是固定的)。模态窗口或弹出面板似乎随着页面移动,但 imgAreaSelect
的区域却没有。
有推荐的解决方案吗?
I am using a GWT PopupPanel
that has an image. I add imgAreaSelect
using jQuery to the image on the load of the panel.
The cropping works absolutely fine when I do not scroll the main window. However, if I scroll the main window, the selection breaks (the area of the imgAreaSelect
object seems to be fixed). The modal window or popup panel seems to be moving with the page, but the area of imgAreaSelect
does not.
Any recommended solutions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果有人正在寻找解决方案,那就是将“parent”选项设置为包含图像的模态 div。 “parent”选项的默认值为“body”。因此将其更改为直接父级解决了该问题。
If anybody is looking for a solution to this, it is to set the 'parent' option as the modal div that contains the image. The default value for the 'parent' option is 'body'. So changing it to the immediate parent resolved the issue.
另外你还必须设置position:relative;给家长
Also you have to set position:relative; to the parent