- Add\Rework UI - Add Split Table and Listing - Add Support Customazeble schems
This commit is contained in:
@@ -51,3 +51,13 @@ class LayoutTracker:
|
||||
|
||||
def new_page(self):
|
||||
self._state.new_page()
|
||||
|
||||
def set_page_size(self, max_height: Length, max_width: Length) -> None:
|
||||
"""Switch usable area (e.g. portrait ↔ landscape) and start a fresh page."""
|
||||
self._state.max_height = max_height
|
||||
self._state.max_width = max_width
|
||||
# Align to a page boundary under the *new* geometry.
|
||||
rem = self._state.remaining_page_height
|
||||
if rem != max_height:
|
||||
self._state.add_height(rem)
|
||||
self._is_new_page = True
|
||||
|
||||
Reference in New Issue
Block a user