Skip to content

Commit

Permalink
Fixing check for resizable in window
Browse files Browse the repository at this point in the history
  • Loading branch information
ecton committed Nov 12, 2023
1 parent d07dcdc commit 0610466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ where
let new_min_size = (min_width > 0 || min_height > 0)
.then_some(Size::<Px>::new(min_width, min_height).into_unsigned());

if new_min_size != self.min_inner_size {
if new_min_size != self.min_inner_size && resizable {
window.set_min_inner_size(new_min_size);
self.min_inner_size = new_min_size;
}
Expand Down

0 comments on commit 0610466

Please sign in to comment.