Skip to content

Commit

Permalink
Update window.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Jun 1, 2024
1 parent 73c4670 commit a8ba6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui/src/containers/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ impl<'open> Window<'open> {

{
// Prevent window from becoming larger than the constrain rect.
let constrain_rect = area.constrain_rect();
let constrain_rect = prepared_area.constrain_rect();
let max_width = constrain_rect.width();
let max_height = constrain_rect.height() - title_bar_height;
resize.max_size.x = resize.max_size.x.min(max_width);
Expand Down

0 comments on commit a8ba6aa

Please sign in to comment.