forked from 1b-agent/opencadstudio-upstream
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:
1 parent
465dcc1600
commit
6b4bc1b832
3 files changed
+4
-36
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user