diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-06-14 13:03:43 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-06-14 13:03:43 +0000 |
commit | 815444c46accf9b5d6868daef2c5070bbf186476 (patch) | |
tree | 0f5c923d0d06fb43e60f7773089b0880d057b28e /src/element | |
parent | 8e7294f3023f6b3836bbebb89d5c2845ab667354 (diff) | |
download | zetacomponents-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.php | 4 |
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; |