summaryrefslogtreecommitdiff
path: root/src/gui/popup.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-11 21:46:22 -0600
committerIra Rice <irarice@gmail.com>2009-03-11 21:46:22 -0600
commit5b1e2aae6391edc99425ed7671d59eddd774212e (patch)
tree6476cd0fdad6ebf41c3e65ad1c44c80e688a39cd /src/gui/popup.cpp
parentc410a861fddc7829408d687e61c67c6101555067 (diff)
downloadmana-client-5b1e2aae6391edc99425ed7671d59eddd774212e.tar.gz
mana-client-5b1e2aae6391edc99425ed7671d59eddd774212e.tar.bz2
mana-client-5b1e2aae6391edc99425ed7671d59eddd774212e.tar.xz
mana-client-5b1e2aae6391edc99425ed7671d59eddd774212e.zip
Enforce minimum widths and heights to be at least as big as the minumum
width and height for the skin used. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/popup.cpp')
-rw-r--r--src/gui/popup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/popup.cpp b/src/gui/popup.cpp
index 8e0c8fb9..17d299a5 100644
--- a/src/gui/popup.cpp
+++ b/src/gui/popup.cpp
@@ -172,12 +172,12 @@ void Popup::setLocationRelativeTo(gcn::Widget *widget)
void Popup::setMinWidth(unsigned int width)
{
- mMinWidth = width;
+ mMinWidth = width > mSkin->getMinWidth() ? width : mSkin->getMinWidth();
}
void Popup::setMinHeight(unsigned int height)
{
- mMinHeight = height;
+ mMinHeight = height > mSkin->getMinHeight() ? height : mSkin->getMinHeight();
}
void Popup::setMaxWidth(unsigned int width)