mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 01:57:16 +00:00
Fix bug with tab navigation buttons jumping on resolution change.
svn-id: r23128
This commit is contained in:
parent
e939153b6a
commit
65041ae239
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user