1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00
This commit is contained in:
lucasmerlin
2025-03-19 11:21:29 +01:00
parent 2ef859e6a7
commit ceb78780de
2 changed files with 1 additions and 1 deletions

View File

@@ -89,6 +89,7 @@ fn main() -> eframe::Result {
MenuButton::new("Menu")
.config(MenuConfig::new().close_behavior(PopupCloseBehavior::CloseOnClickOutside))
.ui(ui, |ui| {
// ui.set_max_width(180.0);
if ui.button("Close menu").clicked() {
ui.close_menu();
}