diff --git a/src/dlangui/platforms/common/platform.d b/src/dlangui/platforms/common/platform.d index 87cef546..f58767d4 100644 --- a/src/dlangui/platforms/common/platform.d +++ b/src/dlangui/platforms/common/platform.d @@ -463,7 +463,7 @@ class Window : CustomEventTarget { _minContentWidth = minContentWidth; _minContentHeight = minContentHeight; if (_windowOrContentResizeMode == WindowOrContentResizeMode.resizeWindow) - resizeWindow(Point(minContentWidth, minContentHeight)); + resizeWindow(Point(max(_windowRect.right, minContentWidth), max(_windowRect.bottom, minContentHeight))); updateWindowOrContentSize(); }