Skip to content

Commit

Permalink
Use Ui::cursor instead of Ui::available_rect_before_wrap.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhatuokun committed Oct 14, 2024
1 parent b1b56db commit 2203186
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.available_rect_before_wrap();
let mut top_rect = ui.cursor();
top_rect.max.y = top_rect.min.y + height;

let result_left;
Expand Down

0 comments on commit 2203186

Please sign in to comment.