Files
vectorcraft/docs
Alex 03b5c9ce92 Panels: the Artboards list fills the panel, so the panel resizes (#6085)
The Artboards panel gave its list a fixed height: `ui.set_min_height(110.0)` and
`ScrollArea::max_height(220.0)`. The panel therefore kept that content size whatever the window
or the floating window's height, a long list scrolled inside a small clipped area, and the
buttons sat part way down with empty space below them.

The list now takes the panel's height less the bottom bar, as the Layers panel's list does:
`list_height()` gives `available - 46.0`, but never less than one 24-point row, with
`ScrollArea::auto_shrink([false, false])` and `min_scrolled_height(0.0)`. The 46 points hold the
bar's divider, the spacing around it and its 24-point buttons, as the test measures them on the
screen-reader tree; at the dock's minimum height one whole row stays in view and the dock panel
scrolls to the bottom bar. The list grows and shrinks with the panel, and long lists scroll in it.

Tests: the panel has 36 artboards, so the list overflows a 300-point panel.
panels::artboards::tests::the_list_fills_the_panel_and_the_bottom_bar_follows_its_height renders
the panel 300 and 700 points tall and checks the bottom bar's divider sits at the bottom of each,
the New Artboard button's bounds end inside the panel at 300, 700 and 80 points, the bar moves with
the height, and the 36th row lies below the bar's divider (the list scrolls instead of pushing the
bar out); it fails with the old fixed list.
panels::artboards::tests::a_panel_at_the_docks_minimum_height_shows_a_whole_row checks the list
keeps one whole row at the minimum height and takes the rest otherwise. The panel's `show` has a
docstring. Docs: roadmap, target-app-parity (revision row, status line, evidence bullet and the UI
chrome area row) and ui-parity (revision row and an Artboards checklist row), all dated 2026-11-07.
2026-11-08 13:13:18 +03:00
..
2026-10-22 00:01:37 +07:00