Set max size on window constraints
This commit is contained in:
parent
7ae9c7616d
commit
7bca105e15
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ extensions::SizeConstraints NativeWindow::GetSizeConstraints() {
|
|||
if (content_constraints.HasMaximumSize()) {
|
||||
gfx::Rect max_bounds = ContentBoundsToWindowBounds(
|
||||
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()) {
|
||||
gfx::Rect min_bounds = ContentBoundsToWindowBounds(
|
||||
|
|
Loading…
Reference in a new issue