mirror of https://github.com/buggins/dlangui.git
WindowOrContentResizeMode.resizeWindow should only expand window size.
This commit is contained in:
parent
54955069de
commit
5584362bd8
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue