Skip to content

Commit

Permalink
Merge pull request #45 from caugner/patch-1
Browse files Browse the repository at this point in the history
BaseDraw: Use array to determine max width
  • Loading branch information
szymach authored Jul 14, 2017
2 parents 5214871 + 82d1453 commit bc4a5b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseDraw.php
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ public function getLegendSize(array $Format = [])
$vY = $vY + max($this->FontSize * count($Lines), $IconAreaHeight) + 5;
} elseif ($Mode == LEGEND_HORIZONTAL) {
$Lines = preg_split("/\n/", $Serie["Description"]);
$Width = "";
$Width = [];
foreach ($Lines as $Key => $Value) {
$BoxArray = $this->getTextBox(
$vX + $IconAreaWidth + 6,
Expand Down

0 comments on commit bc4a5b7

Please sign in to comment.