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