Skip to content

Commit

Permalink
Update resize.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Jun 5, 2024
1 parent e9e04ce commit e04f717
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 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 @@ -215,7 +212,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 @@ -272,11 +268,7 @@ impl Resize {

content_clip_rect = content_clip_rect.intersect(ui.clip_rect()); // Respect parent region

let mut content_ui = ui.child_ui(
inner_rect,
*ui.layout(),
Some(UiStackInfo::new(UiKind::Resize)),
);
let mut content_ui = ui.child_ui(inner_rect, *ui.layout());
content_ui.set_clip_rect(content_clip_rect);

Prepared {
Expand Down

0 comments on commit e04f717

Please sign in to comment.