aboutsummaryrefslogtreecommitdiff
path: root/gui/widgets
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-23 22:54:07 +0600
committerEugene Sandulenko2016-07-03 12:19:48 +0200
commit24963ac97d85a3d78d5b36d63be6cea6f63d178d (patch)
tree845c435ccb35e6fa7789776bfcf987f75374325b /gui/widgets
parent421f9826c8ad403d76b6f40bf1aa4c7c0ec7e676 (diff)
downloadscummvm-rg350-24963ac97d85a3d78d5b36d63be6cea6f63d178d.tar.gz
scummvm-rg350-24963ac97d85a3d78d5b36d63be6cea6f63d178d.tar.bz2
scummvm-rg350-24963ac97d85a3d78d5b36d63be6cea6f63d178d.zip
GUI: Fix Dialog's and TabWidget's reflowLayout()
Diffstat (limited to 'gui/widgets')
-rw-r--r--gui/widgets/tab.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/widgets/tab.cpp b/gui/widgets/tab.cpp
index 756781a04b..689bf37e1b 100644
--- a/gui/widgets/tab.cpp
+++ b/gui/widgets/tab.cpp
@@ -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__