WindowOrContentResizeMode.resizeWindow should only expand window size.

This commit is contained in:
and3md 2017-09-30 07:47:21 +02:00
parent 54955069de
commit 5584362bd8
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ class Window : CustomEventTarget {
_minContentWidth = minContentWidth; _minContentWidth = minContentWidth;
_minContentHeight = minContentHeight; _minContentHeight = minContentHeight;
if (_windowOrContentResizeMode == WindowOrContentResizeMode.resizeWindow) if (_windowOrContentResizeMode == WindowOrContentResizeMode.resizeWindow)
resizeWindow(Point(minContentWidth, minContentHeight)); resizeWindow(Point(max(_windowRect.right, minContentWidth), max(_windowRect.bottom, minContentHeight)));
updateWindowOrContentSize(); updateWindowOrContentSize();
} }