Fix bug with tab navigation buttons jumping on resolution change.

svn-id: r23128
This commit is contained in:
Eugene Sandulenko 2006-06-15 12:09:53 +00:00
parent e939153b6a
commit 65041ae239

View File

@ -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);