Skip to content

Commit

Permalink
Fix: Sides did not apply the layout position correctly. (#5303)
Browse files Browse the repository at this point in the history
Same as last time, but use `available_rect_before_wrap` to avoid
containing infinity.
  • Loading branch information
zhatuokun authored Oct 29, 2024
1 parent 3f2bd14 commit c7d46ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui/src/containers/sides.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c7d46ac

Please sign in to comment.