Skip to content

Commit

Permalink
fix page margins
Browse files Browse the repository at this point in the history
  • Loading branch information
aVadim483 committed Jan 2, 2025
1 parent 00c01bc commit 0131e9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* New methods Sheet::applyIndentLeft(), Sheet::applyIndentRight(), Sheet::applyIndentDistributed()
* Method Sheet::addImage() has been updated -- Add an image from a local file, URL, or base64 image string
* Data can be passed to a cell as a function
* Fixed page margins
* Fixed https://github.com/aVadim483/fast-excel-writer/issues/93 (the behavior has been changed)
* Fixed https://github.com/aVadim483/fast-excel-writer/issues/98 (the behavior has been changed)

Expand Down
2 changes: 1 addition & 1 deletion src/FastExcelWriter/Sheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -3919,7 +3919,7 @@ protected function _pageMargin(string $key, $value)
else {
$value = (float)$value;
}
$this->bottomNodesOptions['pageMargins'][$key] = number_format($value, 1, '.', '');
$this->bottomNodesOptions['pageMargins'][$key] = number_format($value, 3, '.', '');
}

/**
Expand Down

0 comments on commit 0131e9c

Please sign in to comment.