mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-20 19:21:46 +00:00
GUI: Fix Dialog's and TabWidget's reflowLayout()
This commit is contained in:
parent
421f9826c8
commit
24963ac97d
@ -113,13 +113,13 @@ void Dialog::reflowLayout() {
|
||||
// changed, so any cached image may be invalid. The subsequent redraw
|
||||
// should be treated as the very first draw.
|
||||
|
||||
GuiObject::reflowLayout();
|
||||
|
||||
Widget *w = _firstWidget;
|
||||
while (w) {
|
||||
w->reflowLayout();
|
||||
w = w->_next;
|
||||
}
|
||||
|
||||
GuiObject::reflowLayout();
|
||||
}
|
||||
|
||||
void Dialog::lostFocus() {
|
||||
|
@ -258,6 +258,10 @@ void TabWidget::adjustTabs(int value) {
|
||||
void TabWidget::reflowLayout() {
|
||||
Widget::reflowLayout();
|
||||
|
||||
_tabHeight = g_gui.xmlEval()->getVar("Globals.TabWidget.Tab.Height");
|
||||
_tabWidth = g_gui.xmlEval()->getVar("Globals.TabWidget.Tab.Width");
|
||||
_titleVPad = g_gui.xmlEval()->getVar("Globals.TabWidget.Tab.Padding.Top");
|
||||
|
||||
for (uint i = 0; i < _tabs.size(); ++i) {
|
||||
Widget *w = _tabs[i].firstWidget;
|
||||
while (w) {
|
||||
@ -266,10 +270,6 @@ void TabWidget::reflowLayout() {
|
||||
}
|
||||
}
|
||||
|
||||
_tabHeight = g_gui.xmlEval()->getVar("Globals.TabWidget.Tab.Height");
|
||||
_tabWidth = g_gui.xmlEval()->getVar("Globals.TabWidget.Tab.Width");
|
||||
_titleVPad = g_gui.xmlEval()->getVar("Globals.TabWidget.Tab.Padding.Top");
|
||||
|
||||
if (_tabWidth == 0) {
|
||||
_tabWidth = 40;
|
||||
#ifdef __DS__
|
||||
|
Loading…
x
Reference in New Issue
Block a user