summaryrefslogtreecommitdiff
path: root/src/gui/widgets/horizontcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-18 23:35:58 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-18 23:39:07 +0300
commitdc6771670569d2f296f4c12595966bbcb9aadf65 (patch)
tree92e0a21bd121c7abe43f22e1d25a8f17b6969214 /src/gui/widgets/horizontcontainer.cpp
parent6a10bc8d7d186fd83099c75c2a03409d0881aae9 (diff)
downloadmanaplus-dc6771670569d2f296f4c12595966bbcb9aadf65.tar.gz
manaplus-dc6771670569d2f296f4c12595966bbcb9aadf65.tar.bz2
manaplus-dc6771670569d2f296f4c12595966bbcb9aadf65.tar.xz
manaplus-dc6771670569d2f296f4c12595966bbcb9aadf65.zip
Start implimenting new setup pages.
Add new container for setup items. Imporved other containers.
Diffstat (limited to 'src/gui/widgets/horizontcontainer.cpp')
-rw-r--r--src/gui/widgets/horizontcontainer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/horizontcontainer.cpp b/src/gui/widgets/horizontcontainer.cpp
index a04230871..95320055c 100644
--- a/src/gui/widgets/horizontcontainer.cpp
+++ b/src/gui/widgets/horizontcontainer.cpp
@@ -26,7 +26,7 @@
HorizontContainer::HorizontContainer(int height, int spacing):
mSpacing(spacing),
mCount(0),
- mLastX(0)
+ mLastX(spacing)
{
setHeight(height);
addWidgetListener(this);
@@ -38,9 +38,9 @@ void HorizontContainer::add(gcn::Widget *widget)
return;
Container::add(widget);
- widget->setPosition(mLastX, 0);
+ widget->setPosition(mLastX, mSpacing);
mCount++;
- mLastX += widget->getWidth() + mSpacing;
+ mLastX += widget->getWidth() + 2 * mSpacing;
}
void HorizontContainer::clear()