allow dragging on the widget's label if available

This commit is contained in:
jean-emmanuel 2016-03-18 08:48:47 +01:00
parent e29ea9702c
commit f1e384ecc2
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

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

View file

@ -226,7 +226,7 @@
opacity: 1!important;
}
.ui-draggable-handle {
.ui-draggable-handle:not(.label) {
position: absolute;
top: 5rem;
left: 5rem;