mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 18:54:55 +00:00
A popup measures its list on the first frame, when the scroll area does not yet show its bar. When the bar then appeared, its column took its width from the items, and the widest label wrapped onto two lines: Distort & Transform in the Add New Effect menu, and Black and White Logo in the Image Trace presets, in short windows. menu_scroll now lays the items out at least as wide as on the popup's first frame, so the bar's column widens the popup instead. That width is kept until the popup closes and is never wider than the window has room for. The items are laid out in the same child Ui on every frame, so their ids do not change when the width does.