From e7d6af9edc0935644a0a091d89f249a1ab213290 Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Thu, 30 May 2024 22:27:18 +0900 Subject: [PATCH] Update window.rs --- crates/egui/src/containers/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui/src/containers/window.rs b/crates/egui/src/containers/window.rs index 05e2385990a..0b0d0c4b772 100644 --- a/crates/egui/src/containers/window.rs +++ b/crates/egui/src/containers/window.rs @@ -1111,7 +1111,7 @@ impl TitleBar { // Add close button now that we know our full width: if self.close_button_ui(ui).clicked() { *open = false; - resize::reset_largest_content_size(ui.ctx(), &resize); + resize::reset_largest_content_size(ui.ctx(), resize); } }