diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-04-15 19:19:01 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-04-15 19:19:01 +0000 |
commit | 6d09c8f4667f75fece4a5549de237e17490398cf (patch) | |
tree | 1d7f6f8623ba07e20b2dc6538a5ce1c48a4f02e4 /src/gui/window.cpp | |
parent | 59c80255ddd1de9698a75c49ec7a6a1b7c4c1069 (diff) | |
download | mana-6d09c8f4667f75fece4a5549de237e17490398cf.tar.gz mana-6d09c8f4667f75fece4a5549de237e17490398cf.tar.bz2 mana-6d09c8f4667f75fece4a5549de237e17490398cf.tar.xz mana-6d09c8f4667f75fece4a5549de237e17490398cf.zip |
Increased minimum window height and fixed a problem with setting window content
size which was introduced with the new resize grip.
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r-- | src/gui/window.cpp | 6 |
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) |