Fix breaks on edge

This commit is contained in:
John BOTELLA
2024-10-21 08:59:27 +02:00
parent d0d59141af
commit a1a2d2f99e

View File

@@ -769,7 +769,7 @@ class pdf_sponge extends ModelePDFFactures
$pdf->setPageOrientation('', 0, $this->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 - $this->heightforfooter)) {
if ($afterPosData['page'] > $pageposbefore && (empty($showpricebeforepagebreak) || ($curY + 4) > ($this->page_hauteur - $this->heightforfooter))) {
$pdf->setPage($afterPosData['page']);
$curY = $this->tab_top_newpage;
}