From b8f1d6d2fb7402bc258707cf20a3e5665ad12018 Mon Sep 17 00:00:00 2001 From: Jose Leite <122051639+joseleite550@users.noreply.github.com> Date: Tue, 28 Nov 2023 10:28:43 -0300 Subject: [PATCH] IDEMPIERE-4877 - Fix Footer is overlay on content (#2053) * IDEMPIERE-4877 - Fix Footer is overlay on content * IDEMPIERE-4877 - Fix Footer is overlay on content Part 2 --- .../src/org/compiere/print/layout/LayoutEngine.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/print/layout/LayoutEngine.java b/org.adempiere.base/src/org/compiere/print/layout/LayoutEngine.java index 914f19b6ec..0210166c23 100644 --- a/org.adempiere.base/src/org/compiere/print/layout/LayoutEngine.java +++ b/org.adempiere.base/src/org/compiere/print/layout/LayoutEngine.java @@ -1617,10 +1617,11 @@ public class LayoutEngine implements Pageable, Printable, Doc firstPage.width -= xOffset; int yOffset = (int)m_position[AREA_CONTENT].y - m_content.y; firstPage.y += yOffset; - firstPage.height -= yOffset; + firstPage.height -= yOffset+m_content.y; Rectangle nextPages = new Rectangle(m_content); nextPages.x += xOffset; nextPages.width -= xOffset; + nextPages.height -= yOffset; // Column count List instanceAttributeList = new ArrayList<>(); List instanceAttributeItems = new ArrayList<>(); @@ -2126,4 +2127,4 @@ public class LayoutEngine implements Pageable, Printable, Doc } return colSuppressRepeats.toArray(new Boolean[0]); } -} // LayoutEngine +} // LayoutEngine \ No newline at end of file