Fix breaks on edge

This commit is contained in:
John BOTELLA 2024-10-21 09:05:28 +02:00
parent dd4536b7bd
commit 9ee4f2bd03

View file

@ -614,7 +614,7 @@ class pdf_eratosthene extends ModelePDFCommandes
$pdf->setPageOrientation('', 0, $heightforfooter); // The only function to edit the bottom margin of current page to set it.
// We suppose that a too long description or photo were moved completely on next page
if ($afterPosData['page'] > $pageposbefore && empty($showpricebeforepagebreak) || ($curY + 9) > ($this->page_hauteur - $heightforfooter)) {
if ($afterPosData['page'] > $pageposbefore && (empty($showpricebeforepagebreak) || ($curY + 4) > ($this->page_hauteur - $heightforfooter))) {
$pdf->setPage($afterPosData['page']);
$curY = $tab_top_newpage;
}