Skip to content

Commit 7bca105

Browse files
committed
Set max size on window constraints
1 parent 7ae9c76 commit 7bca105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atom/browser/native_window.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ extensions::SizeConstraints NativeWindow::GetSizeConstraints() {
256256
if (content_constraints.HasMaximumSize()) {
257257
gfx::Rect max_bounds = ContentBoundsToWindowBounds(
258258
gfx::Rect(content_constraints.GetMaximumSize()));
259-
content_constraints.set_maximum_size(max_bounds.size());
259+
window_constraints.set_maximum_size(max_bounds.size());
260260
}
261261
if (content_constraints.HasMinimumSize()) {
262262
gfx::Rect min_bounds = ContentBoundsToWindowBounds(

0 commit comments

Comments
 (0)