ui-egui: a popup menu takes alignment alternatives again

This commit is contained in:
bflatastic committed 2026-11-27 15:00:58 +07:00
1 parent 3eb7fab769
commit cf4f5f3cba
1 file changed
+5
+5
View File
@@ -86,6 +86,11 @@ impl Menu {
Self(self.0.close_behavior(behavior))
}
/// Where the menu may go when its first placement doesn't fit, in order.
pub fn align_alternatives(self, alternatives: &'static [egui::RectAlign]) -> Self {
Self(self.0.align_alternatives(alternatives))
}
/// Show the menu while it is open. Its rows `content` scroll with the wheel or the scroll bar
/// once they were taller than the window last frame, as the main menu's do (#2217); a menu
/// that fits is laid out as it is, so it still grows with its rows (a scroll area in a popup