protected function calculateContentWidth() { $this->contentWidth = $this->width - $this->padding * 2 - $this->margin * 2; }