Match chromium's workaround when setting size of unresizable windows
This commit is contained in:
parent
1cc5492784
commit
eae0674f61
4 changed files with 59 additions and 2 deletions
|
@ -100,11 +100,11 @@ gfx::Size FramelessView::CalculatePreferredSize() const {
|
|||
}
|
||||
|
||||
gfx::Size FramelessView::GetMinimumSize() const {
|
||||
return window_->GetContentSizeConstraints().GetMinimumSize();
|
||||
return window_->GetContentMinimumSize();
|
||||
}
|
||||
|
||||
gfx::Size FramelessView::GetMaximumSize() const {
|
||||
return window_->GetContentSizeConstraints().GetMaximumSize();
|
||||
return window_->GetContentMaximumSize();
|
||||
}
|
||||
|
||||
const char* FramelessView::GetClassName() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue