dragged widget only snap to other widgets

This commit is contained in:
jean-emmanuel 2016-03-16 11:57:43 +01:00
parent 43d72ac8a7
commit 63c2927958

View file

@ -219,7 +219,7 @@ var editObject = function(container, data, refresh){
updateDom(container,data)
},
handle:'.ui-draggable-handle',
snap:'.tab.on .widget, .tab.on',
snap:'.widget',
snapTolerance:5,
helper:function(){return $('<div class="ui-helper"></div>').css({height:container.outerHeight(),width:container.outerWidth()})}
}).append('<div class="ui-draggable-handle"></div>')