Enable setting only one side of minimum size, fixes #461.
This commit is contained in:
parent
cfae3cd3af
commit
7b71ae6824
1 changed files with 2 additions and 2 deletions
|
@ -141,8 +141,8 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
|
|||
} else if (options.Get(switches::kCenter, ¢er) && center) {
|
||||
Center();
|
||||
}
|
||||
int min_height = -1, min_width = -1;
|
||||
if (options.Get(switches::kMinHeight, &min_height) &&
|
||||
int min_height = 0, min_width = 0;
|
||||
if (options.Get(switches::kMinHeight, &min_height) ||
|
||||
options.Get(switches::kMinWidth, &min_width)) {
|
||||
SetMinimumSize(gfx::Size(min_width, min_height));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue