f18.js: fix drag problem with header (Forum #82351)

git-svn-id: https://svn.fhem.de/fhem/trunk@23724 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2021-02-12 16:40:03 +00:00
parent eb36f08f82
commit 82f8fbf8fd

View File

@@ -539,6 +539,7 @@ f18_addDragger(el)
/////////////////////////////////////
// Size
var off = 20;
var elPadding = ($(el).outerWidth()-$(el).width());
if(!$(el).hasClass("SVGlabel")) {
$("<div class='dragSize'></div>")
.appendTo(el)
@@ -547,7 +548,7 @@ f18_addDragger(el)
top:$(comp).height()+2, left:$(comp).width()-off, "z-index":1 })
.draggable({
drag:function(evt,ui){
$(el).css( { width:ui.position.left+off });
$(el).css( { width:ui.position.left+off-elPadding });
$(comp).css({ width:ui.position.left+off,
height:ui.position.top });
},