Files
OneCAD-Draft/src/ui/mod.rs
T
Claude 2ff93f479b fix(ui): open drop_down_below lists right under their field in pallets
iced_aw's DropDown keeps its list on screen by testing it against the
viewport's width and height only, as if the viewport started at the
window corner. Inside a scrollable the viewport is the visible area in
window coordinates, so a field in a dock pallet saw its list overflow
and the list jumped left by its own width (or up over the field); the
Properties Transparency dropdown showed it. Hand the drop-down a
viewport reaching from the corner to the visible area's far edges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014ihuqzxdUhd9UbioPn5MGu
2026-10-15 19:09:51 +00:00

35 lines
765 B
Rust

/// Single source of truth for UI row height (px).
/// Change this to scale the ribbon, layer manager rows, and property panel rows uniformly.
pub const ROW_H: f32 = 26.0;
pub mod color_select;
pub mod command_line;
pub mod dock;
pub mod drop_down_fit;
pub mod hover_zone;
pub mod icons;
pub mod menu_bar;
pub mod modal;
pub mod node_graph;
pub mod overlay;
pub mod popup;
pub mod properties;
pub mod read_only;
pub mod ribbon;
pub mod side_toolbar;
pub mod statusbar;
pub mod style;
pub mod text_util;
pub mod wide_menu;
pub mod window;
pub mod wrap_bar;
pub use command_line::CommandLine;
pub use properties::PropertiesPanel;
pub use ribbon::Ribbon;
pub use statusbar::StatusBar;
pub use window::layers::LayerPanel;
#[cfg(test)]
mod theme_accessibility_tests;