1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

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
This commit is contained in:
Emil Ernerfeldt
2024-10-23 11:18:36 +02:00
committed by GitHub
parent e02be45007
commit 68d312d043

View File

@@ -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;