From 27b0e56a7e058ca4e6fc3f371edc76b238a45f71 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Tue, 14 Feb 2017 09:41:06 +0100 Subject: [PATCH] Resize view after showing a Wizard When a wizard dialog is shown a resize must be triggered because display is not called at that time. issue5134 review27101002 --- src/wizard.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wizard.js b/src/wizard.js index 3b5b0cdf4f..30e66a8867 100644 --- a/src/wizard.js +++ b/src/wizard.js @@ -210,6 +210,9 @@ Sao.Wizard.Dialog._super.init.call(this); var dialog = new Sao.Dialog(name, 'wizard-dialog', 'lg'); this.dialog = dialog.modal; + this.dialog.on('shown.bs.modal', function () { + Sao.View.resize(jQuery(this)); + }); this.content = dialog.content; this.footer = dialog.footer; dialog.body.append(this.widget).append(this.info_bar.el);