我正在尝试使用jQueryUI构建一个允许水平和垂直拖放的拖放界面。
我在现有行的上方、之间和下面创建水平拖放区域。我允许垂直拖放元素与jQueryUI排序。我可以将现有元素拖放到新行或现有行中。
我用我到目前为止所掌握的东西设置了这个小玩意:http://jsfiddle.net/travisrussi/DzS8d/2/
以下是我所面对的问题:
- _**Replication steps**_ _(using the jsfiddle)_
- Drag Option 1 to the contentPane.
- Drag Option 2 to the top droppable row (above where Option 1 is).
- _**Expected Behavior**_
- Once Option 2 has been dropped, it should not visually revert back to it's original position.
- _**Replication Steps**_
- Drag Option 1 to the contentPane.
- Mousedown on Option 1 in the contentPane.
- _**Expected Behavior**_
- Mousedown on Option 1 should position the helper element relative to the mouse cursor.
我在这里孤立了这个问题:Connecting a Draggable to Sortable causes helper element to jump
- _**Replication Steps**_
- Drag Option 1 to the contentPane.
- Drag Option 2 to the same row as the first step.
- _**Expected Behavior**_
- Option 2 should be added to the existing row only.
对这些问题有什么想法吗?
发布于 2011-05-10 01:40:14
我基本上重建了界面,并使它正常工作。
下面是一个允许垂直和水平拖放的工作演示链接:http://jsfiddle.net/travisrussi/EGNWU/
在这个演示中,我不尝试显示/隐藏水平放置区域(它们只是保持可见)。
https://stackoverflow.com/questions/5865786
复制相似问题