无法将可拖动对象拖到另一个外部 div
Can not drag a draggable outside of another div
我用jqueryuidraggable/droppable.
我已禁用 css 中的所有 z-index。
我尝试将绿色矩形 div 拖到带有大绿色 div 的左侧。
我无法将拖动的 div 移动到边栏之外。它似乎被捕获在它的父项内,即侧边栏。
这是为什么?是什么让这一切发生?
由于保密协议等原因,我无法提供 pen/fiddle...
overflow: visible ?
JQuery Dragging Outside Parent
或
$(".draggable").draggable({
appendTo: 'body', // Append to the body.
zIndex: <someNumberYouThinkIsAppropriateHere>,
containment: $('document'),
helper: 'clone'
});
Drag item outside parent and into UI dialog
我用jqueryuidraggable/droppable.
我已禁用 css 中的所有 z-index。
我尝试将绿色矩形 div 拖到带有大绿色 div 的左侧。
我无法将拖动的 div 移动到边栏之外。它似乎被捕获在它的父项内,即侧边栏。
这是为什么?是什么让这一切发生?
由于保密协议等原因,我无法提供 pen/fiddle...
overflow: visible ?
JQuery Dragging Outside Parent
或
$(".draggable").draggable({
appendTo: 'body', // Append to the body.
zIndex: <someNumberYouThinkIsAppropriateHere>,
containment: $('document'),
helper: 'clone'
});
Drag item outside parent and into UI dialog