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 06fc89ff14
commit 93f620c47d

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) {