summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/window.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index 5253dd2e..3c73a586 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -196,13 +196,9 @@ void Window::setContentSize(int width, int height)
width = width + 2 * getPadding();
height = height + getPadding() + getTitleBarHeight();
- if (getMinWidth() > width)
- width = getMinWidth();
- else if (getMaxWidth() < width)
+ if (getMaxWidth() < width)
width = getMaxWidth();
- if (getMinHeight() > height)
- height = getMinHeight();
- else if (getMaxHeight() < height)
+ if (getMaxHeight() < height)
height = getMaxHeight();
setSize(width, height);