mirror of
https://github.com/electron/electron.git
synced 2026-01-29 01:08:18 -05:00
Only expand maximum size constraint if there was a constraint originally (#13003)
This commit is contained in:
committed by
Samuel Attard
parent
156a97b80d
commit
8b2bffcf9e
@@ -288,7 +288,9 @@ gfx::Size NativeWindow::GetContentMinimumSize() const {
|
||||
gfx::Size NativeWindow::GetContentMaximumSize() const {
|
||||
gfx::Size maximum_size = GetContentSizeConstraints().GetMaximumSize();
|
||||
#if defined(OS_WIN)
|
||||
return GetExpandedWindowSize(this, maximum_size);
|
||||
return GetContentSizeConstraints().HasMaximumSize()
|
||||
? GetExpandedWindowSize(this, maximum_size)
|
||||
: maximum_size;
|
||||
#else
|
||||
return maximum_size;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user