summaryrefslogtreecommitdiffstats
path: root/src/interfaces/element.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-06-06 14:52:52 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-06-06 14:52:52 +0000
commit4bb4e17c7bf4a45898c9c822be710891a452bd50 (patch)
tree882044c1d5949970e764b94cb4f4556adf812844 /src/interfaces/element.php
parent2643696538c5546f3d271829e07734883e134c3c (diff)
downloadzetacomponents-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.php12
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 )
OpenPOWER on IntegriCloud