From ba7ab268543c221745b5c187b37aaa8342054a5e Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Thu, 23 May 2024 21:18:30 +0900 Subject: [PATCH] Update resize.rs --- crates/egui/src/containers/resize.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/egui/src/containers/resize.rs b/crates/egui/src/containers/resize.rs index 0ee58fc57c5..535b62d19e0 100644 --- a/crates/egui/src/containers/resize.rs +++ b/crates/egui/src/containers/resize.rs @@ -12,9 +12,6 @@ pub(crate) struct State { /// Actual size of content last frame pub(crate) last_content_size: Vec2, - /// Actual size of content largest frame - pub(crate) largest_content_size: Vec2, - /// Externally requested size (e.g. by Window) for the next frame pub(crate) requested_size: Option, } @@ -213,7 +210,6 @@ impl Resize { State { desired_size: self.default_size, last_content_size: Vec2::ZERO, - largest_content_size: Vec2::ZERO, requested_size: None, } }); @@ -295,8 +291,7 @@ impl Resize { content_ui, } = prepared; - state.last_content_size = content_ui.min_size().at_least(state.largest_content_size); - state.largest_content_size = content_ui.min_size().at_least(state.largest_content_size); + state.last_content_size = content_ui.min_size(); // ------------------------------