如何限制窗口组件仅在 GXT - GWT 上的内容面板内拖动?
如何限制窗口组件仅在 GXT - GWT 上的内容面板内拖动?
我需要你的帮助,谢谢。
How do I restrict a window component to drag just inside a contentpanel on GXT - GWT?
I need your help, thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
设置可拖动对象时,请使用 setContainer 部分,并告诉可拖动对象它也仅限于该容器,因此不会被拖出容器。
有关于此,请在线查看 Draggable 帮助。
When setting your draggable utlize the setContainer portion and that tells the draggable object that it is constrained too that container only and hence will not be dragged out of it.
Check the Draggable help online regarding this.