Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions egui/src/containers/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ impl Frame {

pub struct Prepared {
pub frame: Frame,
outer_rect_bounds: Rect,
where_to_put_background: ShapeIdx,
pub content_ui: Ui,
}
Expand All @@ -134,7 +133,6 @@ impl Frame {

Prepared {
frame: self,
outer_rect_bounds,
where_to_put_background,
content_ui,
}
Expand Down Expand Up @@ -175,10 +173,7 @@ impl Frame {

impl Prepared {
pub fn outer_rect(&self) -> Rect {
Rect::from_min_max(
self.outer_rect_bounds.min,
self.content_ui.min_rect().max + self.frame.margin,
)
self.content_ui.min_rect().expand2(self.frame.margin)
}

pub fn end(self, ui: &mut Ui) -> Response {
Expand Down