From b1b56db4e0b181bda8352316218ca1aa338e6f12 Mon Sep 17 00:00:00 2001 From: zhatuokun <1832086967@qq.com> Date: Tue, 8 Oct 2024 14:35:48 +0800 Subject: [PATCH] Fix: `Sides` did not apply the layout position correctly. --- crates/egui/src/containers/sides.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui/src/containers/sides.rs b/crates/egui/src/containers/sides.rs index 3bc353380d0..e34ae70eb8c 100644 --- a/crates/egui/src/containers/sides.rs +++ b/crates/egui/src/containers/sides.rs @@ -78,7 +78,7 @@ impl Sides { let height = height.unwrap_or_else(|| ui.spacing().interact_size.y); let spacing = spacing.unwrap_or_else(|| ui.spacing().item_spacing.x); - let mut top_rect = ui.max_rect(); + let mut top_rect = ui.available_rect_before_wrap(); top_rect.max.y = top_rect.min.y + height; let result_left;