Skip to content

Commit

Permalink
fix: also check max_size empty
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Feb 28, 2022
1 parent 21cd6fb commit 99bc58b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/native_window.cc
Expand Up @@ -177,7 +177,7 @@ void NativeWindow::InitFromOptions(const gin_helper::Dictionary& options) {
// By default the window has a default maximum size that prevents it
// from being resized larger than the screen, so we should only set this
// if th user has passed in values.
if (have_max_height || have_max_width)
if (have_max_height || have_max_width || !max_size.IsEmpty())
size_constraints.set_maximum_size(gfx::Size(max_width, max_height));

if (use_content_size) {
Expand Down

0 comments on commit 99bc58b

Please sign in to comment.