From a8ba6aa473b2d3040e6d0591e8601d84f01ec55c Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Sat, 1 Jun 2024 13:14:56 +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 07a642429ab..59a26a4f6d4 100644 --- a/crates/egui/src/containers/window.rs +++ b/crates/egui/src/containers/window.rs @@ -477,7 +477,7 @@ impl<'open> Window<'open> { { // Prevent window from becoming larger than the constrain rect. - let constrain_rect = area.constrain_rect(); + let constrain_rect = prepared_area.constrain_rect(); let max_width = constrain_rect.width(); let max_height = constrain_rect.height() - title_bar_height; resize.max_size.x = resize.max_size.x.min(max_width);