summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/widgets/tabbedarea.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp
index 2be152d4a..081b61aae 100644
--- a/src/gui/widgets/tabbedarea.cpp
+++ b/src/gui/widgets/tabbedarea.cpp
@@ -101,6 +101,10 @@ TabbedArea::TabbedArea(const Widget2 *const widget) :
setFocusable(true);
addKeyListener(this);
addMouseListener(this);
+}
+
+void TabbedArea::postInit()
+{
mTabContainer->setOpaque(false);
add(mTabContainer);
@@ -111,10 +115,7 @@ TabbedArea::TabbedArea(const Widget2 *const widget) :
mArrowButton[0] = new Button(this, "<", "shift_left", this);
mArrowButton[1] = new Button(this, ">", "shift_right", this);
-}
-void TabbedArea::postInit()
-{
widgetResized(Event(nullptr));
}