Initialize to constraints to current constraints

This commit is contained in:
Kevin Sawicki 2016-07-12 10:05:32 -07:00
parent d3e63777cb
commit 15f7dc6609

View file

@ -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()));