summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabbedarea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-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)