diff options
Diffstat (limited to 'gui/TabWidget.cpp')
-rw-r--r-- | gui/TabWidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/TabWidget.cpp b/gui/TabWidget.cpp index af68b252fb..c57c3b2aca 100644 --- a/gui/TabWidget.cpp +++ b/gui/TabWidget.cpp @@ -49,7 +49,7 @@ void TabWidget::init() { _tabPadding = g_gui.theme()->getTabPadding(); _flags = WIDGET_ENABLED; - _type = kTabWidget; + _type = kTabWidget; _activeTab = -1; _firstVisibleTab = 0; @@ -203,8 +203,8 @@ void TabWidget::handleScreenChanged() { _butW = g_gui.evaluator()->getVar("TabWidget.navButtonW", 10); _butH = g_gui.evaluator()->getVar("TabWidget.navButtonH", 10); - int x = _w - _butRP - _butW * 2 - 2 - _boss->getChildX(); - int y = _butTP - _boss->getChildY() - _tabHeight; + int x = _w - _butRP - _butW * 2 - 2; + int y = _butTP - _tabHeight; _navLeft->resize(x, y, _butW, _butH); _navRight->resize(x + _butW + 2, y, _butW, _butH); |