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

+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.