Files
figcraft/crates
BFlatandClaude Opus 5.5 0c3494b021 M7: popup menus sized to their content (#83)
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>
2026-10-10 16:16:35 +07:00
..
2026-10-10 10:12:21 +07:00