diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-06-06 14:52:52 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-06-06 14:52:52 +0000 |
commit | 4bb4e17c7bf4a45898c9c822be710891a452bd50 (patch) | |
tree | 882044c1d5949970e764b94cb4f4556adf812844 /src/interfaces/element.php | |
parent | 2643696538c5546f3d271829e07734883e134c3c (diff) | |
download | zetacomponents-graph-4bb4e17c7bf4a45898c9c822be710891a452bd50.zip zetacomponents-graph-4bb4e17c7bf4a45898c9c822be710891a452bd50.tar.gz |
- Apply padding after rendering background
Diffstat (limited to 'src/interfaces/element.php')
-rw-r--r-- | src/interfaces/element.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/interfaces/element.php b/src/interfaces/element.php index 62318ad..8aeb8bf 100644 --- a/src/interfaces/element.php +++ b/src/interfaces/element.php @@ -264,12 +264,6 @@ abstract class ezcGraphChartElement extends ezcBaseOptions $this->boundings->x1 -= $this->borderWidth; $this->boundings->y1 -= $this->borderWidth; } - - // Apply padding - $this->boundings->x0 += $this->padding; - $this->boundings->y0 += $this->padding; - $this->boundings->x1 -= $this->padding; - $this->boundings->y1 -= $this->padding; } protected function renderBackground( ezcGraphRenderer $renderer ) @@ -283,6 +277,12 @@ abstract class ezcGraphChartElement extends ezcBaseOptions $this->boundings->y1 - $this->boundings->y0 ); } + + // Apply padding + $this->boundings->x0 += $this->padding; + $this->boundings->y0 += $this->padding; + $this->boundings->x1 -= $this->padding; + $this->boundings->y1 -= $this->padding; } protected function renderTitle( ezcGraphRenderer $renderer ) |