summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-08-13 08:06:06 -0600
committerJared Adams <jaxad0127@gmail.com>2009-08-13 08:06:06 -0600
commitdd3df0c3d2adb3601abfedea2142c015cf3442c5 (patch)
tree4dc8fbc289136666060a4c061b9accf4481caa6f /src/gui/widgets
parentbb9380e68c48f901353ac22042105243c8edd250 (diff)
downloadmana-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')
-rw-r--r--src/gui/widgets/tabbedarea.cpp3
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)