mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-30 13:26:54 -06:00
egui measures a popup in an invisible first pass as wide as the width it is given, else its 600 px default area width, and menu rows filled the available width, so every menu opened from the right panel came out about 600 px wide. - right::menu_popup / context_popup: menus measured at the opening control's width, text kept on one line; every Popup::menu and context menu uses them. - menu_row takes the larger of the menu's width and its own content (label, shortcut, art width), so a menu is as wide as its widest row and at least as wide as its dropdown; explicit .width(w) is now a minimum. Menus at the panel edge stay inside the window. - Headless tests: a menu fits its widest row without wrapping, and the Inspect panel's dropdown menu fits the panel. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>