diff --git a/crates/egui/src/containers/window.rs b/crates/egui/src/containers/window.rs index 0dbd81bf82a..09038ff2536 100644 --- a/crates/egui/src/containers/window.rs +++ b/crates/egui/src/containers/window.rs @@ -761,8 +761,6 @@ fn resize_response( if let Some(mut state) = resize::State::load(ctx, resize_id) { state.requested_size = Some(new_rect.size() - resize.margins); state.last_content_size = Vec2::ZERO; - state.largest_content_size = - (new_rect.size()).at_most(resize.max_size) - resize.margins; state.store(ctx, resize_id); } }