Skip to content

Commit

Permalink
Incorrect column width calculation in ezTable #179
Browse files Browse the repository at this point in the history
  • Loading branch information
savioret committed Jul 2, 2023
1 parent fce993f commit 2a3ae4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cezpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -1293,10 +1293,10 @@ public function ezTable(&$data, $cols = '', $title = '', $options = '')
$widest = 0;
foreach ($cols0 as $colName => $w) {
if ($w > $widest) {
$aWidest = [$colName];
array_unshift($aWidest, $colName);
$nWidest = $widest;
$widest = $w;
} elseif ($w == $widest) {
} else {
$aWidest[] = $colName;
}
}
Expand Down

0 comments on commit 2a3ae4e

Please sign in to comment.