Set max size on window constraints

This commit is contained in:
Kevin Sawicki 2016-08-04 12:14:23 -07:00
parent 7ae9c7616d
commit 7bca105e15

View file

@ -256,7 +256,7 @@ extensions::SizeConstraints NativeWindow::GetSizeConstraints() {
if (content_constraints.HasMaximumSize()) { if (content_constraints.HasMaximumSize()) {
gfx::Rect max_bounds = ContentBoundsToWindowBounds( gfx::Rect max_bounds = ContentBoundsToWindowBounds(
gfx::Rect(content_constraints.GetMaximumSize())); gfx::Rect(content_constraints.GetMaximumSize()));
content_constraints.set_maximum_size(max_bounds.size()); window_constraints.set_maximum_size(max_bounds.size());
} }
if (content_constraints.HasMinimumSize()) { if (content_constraints.HasMinimumSize()) {
gfx::Rect min_bounds = ContentBoundsToWindowBounds( gfx::Rect min_bounds = ContentBoundsToWindowBounds(