From e811fbde414ba52ad00c376fec8b1914507666bb Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 22 Nov 2012 18:37:08 +0100 Subject: [PATCH] Small layout fixed in report graphics. --- reporting/includes/class.graphic.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reporting/includes/class.graphic.inc b/reporting/includes/class.graphic.inc index fc41be8..31f0105 100644 --- a/reporting/includes/class.graphic.inc +++ b/reporting/includes/class.graphic.inc @@ -607,7 +607,7 @@ class graph $this->graphic_area_width = ($this->space_between_dots * $this->total_parameters) - 10; $this->graphic_area_x1 += $this->string_width(($this->higher_value_str), $this->size); $this->width += $this->graphic_area_x1 + 20; - $this->width += ($this->legend_exists == true) ? 40 : ((7 * strlen($this->axis_x)) + 10); + $this->width += ($this->legend_exists == true) ? 40 : ((7 * strlen($this->axis_x)) + 30); break; // Lines @@ -616,7 +616,7 @@ class graph $this->graphic_area_width = ($this->space_between_dots * $this->total_parameters) - 10; $this->graphic_area_x1 += $this->string_width(($this->higher_value_str), $this->size); $this->width += $this->graphic_area_x1 + 20; - $this->width += ($this->legend_exists == true) ? 40 : ((7 * strlen($this->axis_x)) + 10); + $this->width += ($this->legend_exists == true) ? 40 : ((7 * strlen($this->axis_x)) + 30); break; // Pie @@ -634,6 +634,7 @@ class graph break; } + $this->graphic_area_width = max($this->graphic_area_width, $this->string_width($this->title, $this->size)); $this->width += $this->graphic_area_width; $this->width += $this->legend_box_width; -- 2.30.2