2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

f18.js: fix padding, #2 (Forum #82351)

git-svn-id: https://svn.fhem.de/fhem/trunk@23725 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2021-02-12 16:45:51 +00:00
parent 25123fd0a3
commit a8539cf913

View File

@ -668,8 +668,8 @@ f18_doSetPos(el, comp, pos)
f18_applyGrid(pos);
$(el).css({ position:"absolute", left:pos.left, top:pos.top });
if(!$(el).hasClass("SVGlabel")) {
var padding = parseInt($(el).css("padding-left").replace("px",""));
$(el).css({ width:pos.width-padding });
var elPadding = ($(el).outerWidth()-$(el).width());
$(el).css({ width:pos.width-elPadding });
}
$(comp).css({ position:"absolute",
left:pos.left+pos.oLeft, top:pos.top+pos.oTop,