summaryrefslogtreecommitdiffstats
path: root/src/element
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-06-14 13:03:43 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-06-14 13:03:43 +0000
commit815444c46accf9b5d6868daef2c5070bbf186476 (patch)
tree0f5c923d0d06fb43e60f7773089b0880d057b28e /src/element
parent8e7294f3023f6b3836bbebb89d5c2845ab667354 (diff)
downloadzetacomponents-graph-815444c46accf9b5d6868daef2c5070bbf186476.zip
zetacomponents-graph-815444c46accf9b5d6868daef2c5070bbf186476.tar.gz
- Use margin, when rendering chart title
Diffstat (limited to 'src/element')
-rw-r--r--src/element/text.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/element/text.php b/src/element/text.php
index fdcb250..a72ee3e 100644
--- a/src/element/text.php
+++ b/src/element/text.php
@@ -57,7 +57,7 @@ class ezcGraphChartElementText extends ezcGraphChartElement
$height - $this->padding * 2,
ezcGraph::CENTER | ezcGraph::MIDDLE
);
- $boundings->y0 += $height;
+ $boundings->y0 += $height + $this->margin;
break;
case ezcGraph::BOTTOM:
$renderer->drawTextBox(
@@ -70,7 +70,7 @@ class ezcGraphChartElementText extends ezcGraphChartElement
$height - $this->padding * 2,
ezcGraph::CENTER | ezcGraph::MIDDLE
);
- $boundings->y1 -= $height;
+ $boundings->y1 -= $height + $this->margin;
break;
}
return $boundings;
OpenPOWER on IntegriCloud