mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
The Layers list scrolls in its own scroll area, which kept egui's floating scroll bar when #3093 gave the panel bodies a bar in a column of their own. Hovering the list showed the bar over the right edge of the rows, over the target circles and the selection squares the user clicks to select a layer. The list now uses the menus' slim solid bar (list_scroll_style) in its own column, and the rows end beside it. The list knows its total height before it lays the rows out, so the bar is shown exactly when the rows overflow (decided up front): the rows never shift sideways a frame after the bar appears. Test: dock::tests::the_layers_scroll_bar_covers_no_row (40 layers in a 1440x600 window: no row's accessibility rect intersects the bar). It fails without the change and passes with it. The Layers tests that pin row positions across frames still pass. Checked live: the bar sits beside the rows.