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
This commit is contained in:
Jose Leite 2023-11-28 10:28:43 -03:00 committed by GitHub
parent de1a0d9d3b
commit b8f1d6d2fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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<Integer> instanceAttributeList = new ArrayList<>();
List<MPrintFormatItem> instanceAttributeItems = new ArrayList<>();
@ -2126,4 +2127,4 @@ public class LayoutEngine implements Pageable, Printable, Doc
}
return colSuppressRepeats.toArray(new Boolean[0]);
}
} // LayoutEngine
} // LayoutEngine