diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-08-13 08:06:06 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-08-13 08:06:06 -0600 |
commit | dd3df0c3d2adb3601abfedea2142c015cf3442c5 (patch) | |
tree | 4dc8fbc289136666060a4c061b9accf4481caa6f /src/gui/widgets/tabbedarea.cpp | |
parent | bb9380e68c48f901353ac22042105243c8edd250 (diff) | |
download | mana-dd3df0c3d2adb3601abfedea2142c015cf3442c5.tar.gz mana-dd3df0c3d2adb3601abfedea2142c015cf3442c5.tar.bz2 mana-dd3df0c3d2adb3601abfedea2142c015cf3442c5.tar.xz mana-dd3df0c3d2adb3601abfedea2142c015cf3442c5.zip |
Fix initial sizing issue with TabbedAreas
Also remove some commented code from ChatWindow
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index 681f99ec..13bb884b 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -82,10 +82,11 @@ gcn::Widget *TabbedArea::getCurrentWidget() void TabbedArea::addTab(gcn::Tab* tab, gcn::Widget* widget) { + gcn::TabbedArea::addTab(tab, widget); + int width = getWidth() - 2 * getFrameSize(); int height = getHeight() - 2 * getFrameSize() - mTabContainer->getHeight(); widget->setSize(width, height); - gcn::TabbedArea::addTab(tab, widget); } void TabbedArea::addTab(const std::string &caption, gcn::Widget *widget) |