我想在 sapui5 应用程序中启用拖放功能。为此,我使用了 jQuery 可拖放小部件。每当我将一个元素从主视图拖动到详细 View 或反之时,被拖动的元素就会隐藏在另一个 View 后面。下降仍然被识别,元素只是没有出现。基本上这两个 View 都只是 div 的。它可能与 overflow 属性有关,但我对此一无所知。
我在我的可拖动函数上使用这些参数:
draggable({
helper: "clone",
cancel: true,
cursor: "pointer",
stack: "
})
这是一个示例 jsbin:http://jsbin.com/werewuf/4/edit?html,output
最佳答案
As the
sapMNav sapMSplitContainerMaster sapMSplitContainerMasterVisible
element havingoverflow : hidden
property, any child of this parent can not be seen visible out of this container.
为父元素和 dragButton.$().parent().css("overflow-y", "visible") 设置
'overflow' : 'visible'
。 css("溢出-x", "可见");
$('.sapMSplitContainerMasterVisible').css('overflow', 'visible');
JSBin Demo
关于javascript - 在 sapui5 中从主视图拖放到详细 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37599243/