summaryrefslogtreecommitdiff
path: root/src/gui/widgets/vertcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-18 13:37:33 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-18 13:37:33 +0300
commitae83c977b2df61ae6441ccee8b594f9c7819de1d (patch)
treef385ab80d25caccc48d43370bec3e777bc2f92a5 /src/gui/widgets/vertcontainer.cpp
parentc9f1d14eee45827832e1297d88ca62b0f01003ac (diff)
downloadplus-ae83c977b2df61ae6441ccee8b594f9c7819de1d.tar.gz
plus-ae83c977b2df61ae6441ccee8b594f9c7819de1d.tar.bz2
plus-ae83c977b2df61ae6441ccee8b594f9c7819de1d.tar.xz
plus-ae83c977b2df61ae6441ccee8b594f9c7819de1d.zip
improve vertcontainer.
Diffstat (limited to 'src/gui/widgets/vertcontainer.cpp')
-rw-r--r--src/gui/widgets/vertcontainer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/vertcontainer.cpp b/src/gui/widgets/vertcontainer.cpp
index ea7bb4e30..0611b3714 100644
--- a/src/gui/widgets/vertcontainer.cpp
+++ b/src/gui/widgets/vertcontainer.cpp
@@ -54,7 +54,7 @@ void VertContainer::add2(gcn::Widget *const widget, const bool resizable,
widget->setPosition(mLeftSpacing, mNextY);
if (resizable)
{
- widget->setSize(getWidth() - mLeftSpacing, mVerticalItemSize * 5);
+ widget->setSize(mDimension.width - mLeftSpacing, mVerticalItemSize * 5);
mResizableWidgets.push_back(widget);
}
else if (widget->getHeight() > mVerticalItemSize)