summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-26 22:20:07 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-26 22:23:15 +0200
commit2fc4e340c82e9e9a6a7b724e6f2411e37d7a1118 (patch)
tree8e25c930ce9742b919b90f583d37445c1a81fa1d /src/gui/widgets
parent8331284990b8d998a7e323e6fcf3c25f2f7d60d8 (diff)
downloadmana-2fc4e340c82e9e9a6a7b724e6f2411e37d7a1118.tar.gz
mana-2fc4e340c82e9e9a6a7b724e6f2411e37d7a1118.tar.bz2
mana-2fc4e340c82e9e9a6a7b724e6f2411e37d7a1118.tar.xz
mana-2fc4e340c82e9e9a6a7b724e6f2411e37d7a1118.zip
Fixed the dimensions of the popup/tooltip
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/popup.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/widgets/popup.cpp b/src/gui/widgets/popup.cpp
index 1c7cfdd1..3b80fe5e 100644
--- a/src/gui/widgets/popup.cpp
+++ b/src/gui/widgets/popup.cpp
@@ -37,8 +37,8 @@
Popup::Popup(const std::string &name, const std::string &skin):
mPopupName(name),
- mMinWidth(100),
- mMinHeight(40),
+ mMinWidth(64),
+ mMinHeight(25),
mMaxWidth(graphics->getWidth()),
mMaxHeight(graphics->getHeight())
{
@@ -47,7 +47,7 @@ Popup::Popup(const std::string &name, const std::string &skin):
if (!windowContainer)
throw GCN_EXCEPTION("Popup::Popup(): no windowContainer set");
- setPadding(3);
+ setPadding(8);
// Loads the skin
mSkin = Theme::instance()->load(skin);
@@ -82,7 +82,9 @@ void Popup::draw(gcn::Graphics *graphics)
gcn::Rectangle Popup::getChildrenArea()
{
- return gcn::Rectangle(getPadding(), 0, getWidth() - getPadding() * 2,
+ return gcn::Rectangle(getPadding(),
+ getPadding(),
+ getWidth() - getPadding() * 2,
getHeight() - getPadding() * 2);
}