2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-01 18:39:00 +00:00

98_SVG.pm: fix first X-label position for enPlotNow (Forum #129182)

git-svn-id: https://svn.fhem.de/fhem/trunk@26456 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2022-09-30 09:48:42 +00:00
parent e7340273b0
commit 627f5278a8

View File

@ -1779,7 +1779,7 @@ SVG_render($$$$$$$$$$)
$off1 = int($x+($i-$fromsec)*$tmul);
}
$t = SVG_fmtTime($tag, $i);
if($off1 == $x) {
if($off1 < $x+10) { # first text, too close to the date field
SVG_pO "<text x=\"$off1\" y=\"$off2\" class=\"ylabel\" " .
"text-anchor=\"left\">$t</text>";
} elsif ($off1 < $x+$w-8) {