graphlib - MDL-20855 fix alignemnt issue with the x-axis.

Labels with a descender (e.g. May) appeared lower than ones without (e.g. Jun).
Text is drawn baseline aligned, not bottom aligned,and so the code was computing the position wrongly.
This commit is contained in:
Tim Hunt 2009-11-19 16:56:47 +00:00
parent a342751f29
commit 2d0d78befd

View file

@ -1371,7 +1371,7 @@ class graph {
} else { } else {
$width = abs($bounds[4]-$bounds[6]); $width = abs($bounds[4]-$bounds[6]);
$height = abs($bounds[7]-$bounds[1]); $height = abs($bounds[7]-$bounds[1]);
$offsetY = 0; $offsetY = $bounds[1];
$offsetX = 0; $offsetX = 0;
} }