Skip to content

Commit

Permalink
Update resize.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored May 23, 2024
1 parent b714c26 commit ba7ab26
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/egui/src/containers/resize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec2>,
}
Expand Down Expand Up @@ -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,
}
});
Expand Down Expand Up @@ -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();

// ------------------------------

Expand Down

0 comments on commit ba7ab26

Please sign in to comment.