Skip to content

Commit

Permalink
Fix: nw2: disable zoom button when window has max size #7370
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed Feb 28, 2020
1 parent 54d9f24 commit 8bfbcf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/browser/ui/views/frame/browser_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1975,7 +1975,7 @@ bool BrowserView::CanResize() const {
}

bool BrowserView::CanMaximize() const {
return resizable_;
return resizable_ && maximum_size_.IsEmpty() && !WidgetHasHitTestMask();
}

bool BrowserView::CanMinimize() const {
Expand Down

0 comments on commit 8bfbcf3

Please sign in to comment.