From 25123fd0a3e792c59599c9b37b21f72420c80147 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Fri, 12 Feb 2021 16:40:03 +0000 Subject: [PATCH] f18.js: fix drag problem with header (Forum #82351) git-svn-id: https://svn.fhem.de/fhem/trunk@23724 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/f18.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/www/pgm2/f18.js b/fhem/www/pgm2/f18.js index 0294c8756..6c0568e4a 100644 --- a/fhem/www/pgm2/f18.js +++ b/fhem/www/pgm2/f18.js @@ -539,6 +539,7 @@ f18_addDragger(el) ///////////////////////////////////// // Size var off = 20; + var elPadding = ($(el).outerWidth()-$(el).width()); if(!$(el).hasClass("SVGlabel")) { $("
") .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 }); },