diff --git a/crates/egui/src/containers/resize.rs b/crates/egui/src/containers/resize.rs index 7ff44e8165c..f2f59e59b85 100644 --- a/crates/egui/src/containers/resize.rs +++ b/crates/egui/src/containers/resize.rs @@ -209,7 +209,7 @@ impl Resize { State { desired_size: self.default_size, - last_content_size: self.default_size - margins, + last_content_size: vec2(0.0, 0.0), requested_size: None, } });