Skip to content

Commit

Permalink
fix #38
Browse files Browse the repository at this point in the history
  • Loading branch information
aVadim483 committed Oct 7, 2023
1 parent 5c774d6 commit 58b73ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FastExcelWriter/Sheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,8 @@ public function setColWidth($col, $width, ?bool $min = false): Sheet
}
elseif (empty($this->colMinWidths[$colIdx]) || $this->colMinWidths[$colIdx] <= $width) {
$this->colAttributes[$colIdx]['width'] = $width;
$this->colAttributes[$colIdx]['min'] = $colIdx + 1;
$this->colAttributes[$colIdx]['max'] = $colIdx + 1;
}
}
}
Expand Down

0 comments on commit 58b73ff

Please sign in to comment.