mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 07:13:46 +00:00
A scrolling menu list took its height from its own top down to the window's bottom bars. egui picks a popup's side from its size on the previous frame and moves a popup that does not fit back into the window, so the list's height changed with where the popup was drawn. In a short window the Add New Effect menu and other long menus moved between two places while open, and a menu that did not fit crept a few points per frame. The list now takes its height from the room below and above the button, row or point it opens from: below while that side leaves the 120 pt minimum, otherwise on the side with more room. A submenu measures down from its row's top or up from its row's bottom. The change is in menu_scroll, so it applies to every menu built on it.