mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
svg.js: fix displaying plot values (Forum #114602)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@22891 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3d006d9498
commit
f7e654549d
@ -290,3 +290,5 @@ body.commandref div#menu { top:15px; left:40px; }
|
|||||||
body.commandref div#menu a { margin-left:20px; }
|
body.commandref div#menu a { margin-left:20px; }
|
||||||
body.commandref div#menu br { display:none; }
|
body.commandref div#menu br { display:none; }
|
||||||
body.commandref div#menu h3 { display:none; }
|
body.commandref div#menu h3 { display:none; }
|
||||||
|
|
||||||
|
.SVGplot { position:relative;}
|
||||||
|
@ -355,12 +355,7 @@ sv_menu(evt, embed)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$(par.circle).attr("cx", xRaw).attr("cy", yRaw);
|
$(par.circle).attr("cx", xRaw).attr("cy", yRaw);
|
||||||
var yd = Math.floor(yRaw / 20)*20;
|
var yd = Math.floor(yRaw / 20)*20 - 50;
|
||||||
|
|
||||||
if(embed)
|
|
||||||
yd += embedOffsetY-90;
|
|
||||||
else
|
|
||||||
yd += $(svg).offset().top-90;
|
|
||||||
|
|
||||||
$(par.div).html(ts+" "+y)
|
$(par.div).html(ts+" "+y)
|
||||||
.css({ left:xRaw-20, top:yd });
|
.css({ left:xRaw-20, top:yd });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user