Initialize to constraints to current constraints
This commit is contained in:
parent
d3e63777cb
commit
15f7dc6609
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ gfx::Size NativeWindow::GetContentSize() {
|
||||||
|
|
||||||
void NativeWindow::SetSizeConstraints(
|
void NativeWindow::SetSizeConstraints(
|
||||||
const extensions::SizeConstraints& window_constraints) {
|
const extensions::SizeConstraints& window_constraints) {
|
||||||
extensions::SizeConstraints content_constraints;
|
extensions::SizeConstraints content_constraints(GetContentSizeConstraints());
|
||||||
if (window_constraints.HasMaximumSize())
|
if (window_constraints.HasMaximumSize())
|
||||||
content_constraints.set_maximum_size(
|
content_constraints.set_maximum_size(
|
||||||
WindowSizeToContentSize(window_constraints.GetMaximumSize()));
|
WindowSizeToContentSize(window_constraints.GetMaximumSize()));
|
||||||
|
|
Loading…
Reference in a new issue