1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

apply suggested fix (#481)

This commit is contained in:
Sven Niederberger
2021-06-12 14:36:39 +02:00
committed by GitHub
parent 998e07d865
commit 2b4d3fa5b1

View File

@@ -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,
}
@@ -134,7 +133,6 @@ impl Frame {
Prepared {
frame: self,
outer_rect_bounds,
where_to_put_background,
content_ui,
}
@@ -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 {