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:
@@ -1779,7 +1779,7 @@ SVG_render($$$$$$$$$$)
|
|||||||
$off1 = int($x+($i-$fromsec)*$tmul);
|
$off1 = int($x+($i-$fromsec)*$tmul);
|
||||||
}
|
}
|
||||||
$t = SVG_fmtTime($tag, $i);
|
$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\" " .
|
SVG_pO "<text x=\"$off1\" y=\"$off2\" class=\"ylabel\" " .
|
||||||
"text-anchor=\"left\">$t</text>";
|
"text-anchor=\"left\">$t</text>";
|
||||||
} elsif ($off1 < $x+$w-8) {
|
} elsif ($off1 < $x+$w-8) {
|
||||||
|
|||||||
Reference in New Issue
Block a user