Skip to content

Commit

Permalink
Use available_rect_before_wrap to avoid containing infinity..
Browse files Browse the repository at this point in the history
  • Loading branch information
zhatuokun committed Oct 24, 2024
1 parent 975acf9 commit 2ce6298
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.cursor();
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 2ce6298

Please sign in to comment.