mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-29 04:07:12 -06:00
The panels' scroll areas used egui's default floating scroll bar, which is drawn over the right edge of the content: in a window too short for the Properties panel it covered the Image Trace button's dropdown arrow and the W/H constrain link, and in a dock column too tall for the window it covered the panels' menu buttons and right-hand controls. Menus (#2086, list_scroll_style) and the toolbar and dock icon column (#808, strip_scroll) had already been given bars that keep clear of their items; the panel bodies hadn't. - widgets: panel_scroll shows a panel's scroll area with the menus' slim solid bar (list_scroll_style), in a column of its own at the right edge; scroll areas inside the body keep their own style. - dock.rs: the docked Properties panel and Properties in a flyout, floating group or shared dock group use it. - floating.rs: a dock column too tall for the window uses it. - panel_docking.rs: a panel's body in the shared dock uses it, laid out as wide as the scroll area leaves beside the bar; the shared dock's icon column scrolls with strip_scroll, as the dock's icon column does. - test: the_properties_scroll_bar_covers_no_control (a 1440x600 frame of the dock with an image selected: no control's rect meets the Properties scroll bar). It fails on main with "Tracing Presets" (the Image Trace arrow) and "Constrain Width and Height Proportions" under the bar. Verified live at 1440x600 with an image selected: before, the hovered bar sat over the Image Trace arrow and the right ends of the Quick Action buttons, and a dock column's bar over the Swatches panel menu; after, both bars sit in their own 8 pt column and nothing is covered.