2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

svg.js: fix displaying plot values (Forum #114602)

git-svn-id: https://svn.fhem.de/fhem/trunk@22891 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-09-30 12:47:36 +00:00
parent 86713a4534
commit a8ecefe40d
2 changed files with 3 additions and 6 deletions

View File

@ -290,3 +290,5 @@ body.commandref div#menu { top:15px; left:40px; }
body.commandref div#menu a { margin-left:20px; }
body.commandref div#menu br { display:none; }
body.commandref div#menu h3 { display:none; }
.SVGplot { position:relative;}

View File

@ -355,12 +355,7 @@ sv_menu(evt, embed)
}
$(par.circle).attr("cx", xRaw).attr("cy", yRaw);
var yd = Math.floor(yRaw / 20)*20;
if(embed)
yd += embedOffsetY-90;
else
yd += $(svg).offset().top-90;
var yd = Math.floor(yRaw / 20)*20 - 50;
$(par.div).html(ts+" "+y)
.css({ left:xRaw-20, top:yd });