Skip to content

Commit

Permalink
Update ui.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Aug 30, 2024
1 parent da04339 commit 580dd02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/egui/src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1216,9 +1216,9 @@ impl Ui {
debug_assert!(desired_size.x >= 0.0 && desired_size.y >= 0.0);
let item_spacing = self.spacing().item_spacing;
let frame_rect = self.placer.next_space(desired_size, item_spacing);
let child_rect = self.placer.justify_and_align(frame_rect, desired_size);
let _child_rect = self.placer.justify_and_align(frame_rect, desired_size);
self.allocate_new_ui(
UiBuilder::new().max_rect(child_rect).layout(layout),
UiBuilder::new().max_rect(frame_rect).layout(layout),
add_contents,
)
}
Expand Down

0 comments on commit 580dd02

Please sign in to comment.