diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-18 13:37:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-18 13:37:33 +0300 |
commit | ae83c977b2df61ae6441ccee8b594f9c7819de1d (patch) | |
tree | f385ab80d25caccc48d43370bec3e777bc2f92a5 /src/gui/widgets/vertcontainer.cpp | |
parent | c9f1d14eee45827832e1297d88ca62b0f01003ac (diff) | |
download | manaverse-ae83c977b2df61ae6441ccee8b594f9c7819de1d.tar.gz manaverse-ae83c977b2df61ae6441ccee8b594f9c7819de1d.tar.bz2 manaverse-ae83c977b2df61ae6441ccee8b594f9c7819de1d.tar.xz manaverse-ae83c977b2df61ae6441ccee8b594f9c7819de1d.zip |
improve vertcontainer.
Diffstat (limited to 'src/gui/widgets/vertcontainer.cpp')
-rw-r--r-- | src/gui/widgets/vertcontainer.cpp | 2 |
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) |