Index: frontends/php/include/classes/class.cchart.php =================================================================== --- frontends/php/include/classes/class.cchart.php (revision 31396) +++ frontends/php/include/classes/class.cchart.php (working copy) @@ -2244,7 +2244,7 @@ $this->fullSizeX = $this->sizeX + $this->shiftXleft + $this->shiftXright + 1; $this->fullSizeY = $this->sizeY + $this->shiftY + $this->legendOffsetY; - if ($this->drawLegend) { + if ($this->drawLegend && $this->sizeY > ZBX_GRAPH_LEGEND_HEIGHT ) { $this->fullSizeY += 14 * ($this->num + 1 + (($this->sizeY < 120) ? 0 : count($this->triggers))) + 8; } @@ -2362,7 +2362,7 @@ $this->drawLeftSide(); $this->drawRightSide(); - if ($this->drawLegend) { + if ($this->drawLegend && $this->sizeY > ZBX_GRAPH_LEGEND_HEIGHT) { $this->drawTriggers(); $this->drawPercentile(); $this->drawLegend();