summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r--src/gui/window.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index bd3e7eb5..6165ce70 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -65,7 +65,7 @@ Window::Window(const std::string& caption, bool modal, Window *parent):
mMouseResize(0),
mSticky(false),
mMinWinWidth(100),
- mMinWinHeight(28),
+ mMinWinHeight(40),
mMaxWinWidth(INT_MAX),
mMaxWinHeight(INT_MAX)
{
@@ -182,13 +182,13 @@ void Window::draw(gcn::Graphics *graphics)
void Window::setContentWidth(int width)
{
mChrome->setWidth(width);
- resizeToContent();
+ setWidth(width + 2 * getPadding());
}
void Window::setContentHeight(int height)
{
mChrome->setHeight(height);
- resizeToContent();
+ setHeight(height + getPadding() + getTitleBarHeight());
}
void Window::setContentSize(int width, int height)