fix(ViewCube): WCS dropdown no longer appears to clip view cube

- enlarged render area for the viewcube container, and increased the gap between cube region and WCS dropdown
This commit is contained in:
Karim Jerbi committed 2026-09-04 10:21:33 +01:00
1 parent eca59d765b
commit 886d5777d8
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -1162,7 +1162,7 @@ impl OpenCADStudio {
)))
.position(iced::Point::new(
cube_x + VIEWCUBE_HIT_SIZE * 0.5 - UCS_PICKER_W * 0.5,
cube_y + VIEWCUBE_HIT_SIZE + 6.0,
cube_y + VIEWCUBE_HIT_SIZE + 10.0,
));
viewport_stack = viewport_stack.push(picker);
}
@@ -1202,7 +1202,7 @@ impl OpenCADStudio {
)))
.position(iced::Point::new(
cube_x + VIEWCUBE_HIT_SIZE * 0.5 - UCS_PICKER_W * 0.5,
cube_y + VIEWCUBE_HIT_SIZE + 6.0,
cube_y + VIEWCUBE_HIT_SIZE + 10.0,
));
viewport_stack = viewport_stack.push(picker);
}
+1 -1
View File
@@ -38,7 +38,7 @@ pub const VIEWCUBE_PAD: f32 = 12.0;
pub const NAV_INSET_F: f32 = 2.0;
/// Side of the whole nav widget (cube + compass ring + controls) in pixels.
pub const VIEWCUBE_REGION_PX: f32 = VIEWCUBE_DRAW_PX * NAV_INSET_F;
pub const VIEWCUBE_RENDER_PX: f32 = VIEWCUBE_REGION_PX + 8.0;
pub const VIEWCUBE_RENDER_PX: f32 = VIEWCUBE_REGION_PX + 20.0;
/// Z height of the compass ring + cardinals in cube-local space. The cube
/// spans ±1, so −1 parks the ring at the cube's base — it sits *under* the
/// cube in 3D views and reads as a ground compass.