fix: paper background no longer resizes when a viewport is added

White paper fill was calculated from entity bounding boxes (paper_entity_extents),
so adding a viewport caused the paper to visually shrink to the viewport's bounds.
Now paper_limits() (layout min/max limits) is used directly, and the unused
paper_entity_extents() function is removed.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Sonnet 4.6 committed 2026-04-24 12:02:33 +03:00
1 parent 465dcc1600
commit 6b4bc1b832
3 files changed
+4 -36

No files matched your search

-1
View File
@@ -312,7 +312,6 @@ impl H7CAD {
.add_entity_to_layout(entity, &layout)
{
Ok(new_handle) => {
// Auto-fit the new viewport to show model-space content.
self.tabs[i].scene.auto_fit_viewport(new_handle);
}
Err(e) => self