summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/chat.cpp2
-rw-r--r--src/gui/widgets/tabbedarea.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 4cabf92e..f1814d93 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -100,8 +100,6 @@ ChatWindow::ChatWindow():
place(0, 0, mChatTabs, 3, 3);
place(0, 3, mChatInput, 3);
- //add(mChatTabs);
- //add(mChatInput);
loadWindowState();
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)