aboutsummaryrefslogtreecommitdiff
path: root/gui/widgets/scrollcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/widgets/scrollcontainer.cpp')
-rw-r--r--gui/widgets/scrollcontainer.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/gui/widgets/scrollcontainer.cpp b/gui/widgets/scrollcontainer.cpp
index c136c57a81..e0680e123b 100644
--- a/gui/widgets/scrollcontainer.cpp
+++ b/gui/widgets/scrollcontainer.cpp
@@ -33,8 +33,8 @@ ScrollContainerWidget::ScrollContainerWidget(GuiObject *boss, int x, int y, int
init();
}
-ScrollContainerWidget::ScrollContainerWidget(GuiObject *boss, const Common::String &name, uint32 reflowCmd)
- : Widget(boss, name), CommandSender(nullptr), _reflowCmd(reflowCmd) {
+ScrollContainerWidget::ScrollContainerWidget(GuiObject *boss, const Common::String &name, const Common::String &dialogName, uint32 reflowCmd)
+ : Widget(boss, name), CommandSender(nullptr), _reflowCmd(reflowCmd), _dialogName(dialogName) {
init();
}
@@ -119,6 +119,10 @@ void ScrollContainerWidget::handleCommand(CommandSender *sender, uint32 cmd, uin
void ScrollContainerWidget::reflowLayout() {
Widget::reflowLayout();
+ if (!_dialogName.empty()) {
+ g_gui.xmlEval()->reflowDialogLayout(_dialogName, _firstWidget);
+ }
+
//reflow layout of inner widgets
Widget *ptr = _firstWidget;
while (ptr) {