summaryrefslogtreecommitdiffstats
path: root/src/renderer
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2009-09-29 09:24:49 +0000
committerKore Nordmann <github@kore-nordmann.de>2009-09-29 09:24:49 +0000
commitd214cd40c7b59248a7491d05faaea066541c4a74 (patch)
tree60e4dcd83d18005eabc0f31f29102ae03bee501b /src/renderer
parenta33a0b5ce41af2eb5ba9636ac2a749f1e6261592 (diff)
downloadzetacomponents-graph-d214cd40c7b59248a7491d05faaea066541c4a74.zip
zetacomponents-graph-d214cd40c7b59248a7491d05faaea066541c4a74.tar.gz
- Fixed #15537: Graph shows to small and truncated rotated axis labels.
Diffstat (limited to 'src/renderer')
-rw-r--r--src/renderer/axis_label_rotated.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/renderer/axis_label_rotated.php b/src/renderer/axis_label_rotated.php
index 201cdb3..7188e44 100644
--- a/src/renderer/axis_label_rotated.php
+++ b/src/renderer/axis_label_rotated.php
@@ -273,11 +273,17 @@ class ezcGraphAxisRotatedLabelRenderer extends ezcGraphAxisLabelRenderer
$labelLength = sqrt(
pow(
$xSpace * $this->direction->y +
- $axisSpaceFactor * $this->offset * ( $end->x - $start->x ),
+ ( $this->labelOffset ?
+ $axisSpaceFactor * $this->offset * ( $end->x - $start->x ) :
+ $ySpace * 2 * $this->direction->x
+ ),
2 ) +
pow(
$ySpace * $this->direction->x +
- $axisSpaceFactor * $this->offset * ( $end->y - $start->y ),
+ ( $this->labelOffset ?
+ $axisSpaceFactor * $this->offset * ( $end->y - $start->y ) :
+ $xSpace * 2 * $this->direction->y
+ ),
2 )
);
OpenPOWER on IntegriCloud