From 580dd029ecac3f34df81c91dec8f3665e3e1bec7 Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Sat, 31 Aug 2024 03:39:51 +0900 Subject: [PATCH] Update ui.rs --- crates/egui/src/ui.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/ui.rs b/crates/egui/src/ui.rs index e502f11e148..e7877dda15f 100644 --- a/crates/egui/src/ui.rs +++ b/crates/egui/src/ui.rs @@ -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, ) }