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 1/3] 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, ) } From ad75b753e618f80439bad0186b9c1759a1182d5c Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Sat, 31 Aug 2024 15:53:26 +0900 Subject: [PATCH 2/3] Update ui.rs --- crates/egui/src/ui.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/egui/src/ui.rs b/crates/egui/src/ui.rs index e7877dda15f..56881c1691b 100644 --- a/crates/egui/src/ui.rs +++ b/crates/egui/src/ui.rs @@ -1216,7 +1216,6 @@ 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); self.allocate_new_ui( UiBuilder::new().max_rect(frame_rect).layout(layout), add_contents, From 53d690b4c6e8f70b8908725118117b644f4960af Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Sat, 31 Aug 2024 16:01:10 +0900 Subject: [PATCH 3/3] Update shadow.rs --- crates/epaint/src/shadow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/epaint/src/shadow.rs b/crates/epaint/src/shadow.rs index ea6454f99cf..bb386d21dc7 100644 --- a/crates/epaint/src/shadow.rs +++ b/crates/epaint/src/shadow.rs @@ -11,7 +11,7 @@ pub struct Shadow { /// Move the shadow by this much. /// /// For instance, a value of `[1.0, 2.0]` will move the shadow 1 point to the right and 2 points down, - /// causing a drop-shadow effet. + /// causing a drop-shadow effect. pub offset: Vec2, /// The width of the blur, i.e. the width of the fuzzy penumbra.