拖动 JsPlumb 的端点时,它们不会在容器内更新并出现滚动溢出

发布于 2024-12-04 22:21:56 字数 699 浏览 1 评论 0原文

我有两个可拖动层,它们之间有一个基于 JsPlumb 库的连接。工作示例可在此处获取。图片在这里:

在此处输入图像描述

当这些层位于主体中时没有任何问题,但是当我将它们放入另一个层(即容器)中,并使用 overflow: auto ORscroll; 问题开始显现出来。当您将图层移到容器的可见区域之外时,可拖动图层的端点不会随可拖动图层一起移动,而是会停在容器的边框中。

JsPlumb 库的作者已经在 J​​sPlumb 1.2.x 版本中解决了这个问题 这里,但不幸的是这个脚本不再适用于 JsPlumb 1.3.x。有谁知道这个问题如何解决?我(并且认为许多开发人员)确实需要解决这个问题(如果它还没有解决,因为我用谷歌搜索并没有找到任何有用的东西)。

I have two draggable layers and there is a connection between them which is based on JsPlumb library. Working example is available here. The picture is here:

enter image description here

When these layers are located in the body there is no any problems, but when I put them inside another layer (i.e. container) with overflow: auto OR scroll; the problem starts to show itself. When you move a layer outside the visible area of the container the endpoints of the draggable layers don't move with a draggable layer but instead they (endpoints) stop in the border of the container.

The author of the JsPlumb library had solved this problem for a JsPlumb 1.2.x version here, but UNFORTUNATELY this script doesn't work anymore for JsPlumb 1.3.x. Does anybody know how this problem could be solved? I (and think many developers) really need to solve this problem (if it hadn't been solved yet, because I had googled and didn't find anything useful).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谁把谁当真 2024-12-11 22:21:57

感谢 jsPlumb 库的作者我能够解决这个问题。他针对出现的问题发布了新的 RC 版本的库,现在问题消失了!工作示例可在此处获取。

Thanks to the author of jsPlumb library I was able to solve the problem. He has released a new RC version of the library for the appeared problem and now the problem is gone! Working example is is available here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文