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

Fix: Sides did not apply the layout position correctly. (#5303)

Same as last time, but use `available_rect_before_wrap` to avoid
containing infinity.
This commit is contained in:
zhatuokun
2024-10-29 19:42:02 +08:00
committed by GitHub
parent 3f2bd14554
commit c7d46ac9f9

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.max_rect();
let mut top_rect = ui.available_rect_before_wrap();
top_rect.max.y = top_rect.min.y + height;
let result_left;