mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
f18.js: fix SVG-width when dragging (Forum #126070)
git-svn-id: https://svn.fhem.de/fhem/trunk@25656 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e879b17077
commit
f12294f1a7
@ -515,9 +515,13 @@ f18_addDragger(el)
|
||||
save()
|
||||
{
|
||||
var nep = $(el).position();
|
||||
var cw = $(comp).width();
|
||||
var svg = $(comp).find(">svg");
|
||||
if($(svg).length==1 && $(svg).attr("id").indexOf("SVGPLOT")==0) // Forum #126070
|
||||
cw = $(svg).width();
|
||||
f18_setAttr("Pos."+$(el).attr("data-name"), {
|
||||
left:nep.left, top:nep.top,
|
||||
width:$(comp).width(), height:$(comp).height(),
|
||||
width:cw, height:$(comp).height(),
|
||||
oTop:cp.top-ep.top, oLeft:cp.left-ep.left
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user