From 68d312d043b61c07db5630ab95b07382548907dd Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 23 Oct 2024 11:18:36 +0200 Subject: [PATCH] Revert "Fix: `Sides` did not apply the layout position correctly." (#5300) Reverts emilk/egui#5232 I should have tested it first. `cursor` can contain infinites. There is a better fix to be found @zhatuokun --- 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 18b508275d0..3bc353380d0 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.cursor(); + let mut top_rect = ui.max_rect(); top_rect.max.y = top_rect.min.y + height; let result_left;