Skip to content

Commit 8096967

Browse files
[FIX] web_dialog_size: prevent export wizard from shrinking when dialog maximize is enabled
1 parent e32b068 commit 8096967

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

web_dialog_size/static/src/js/web_dialog_size.esm.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,15 @@ patch(Dialog.prototype, "web_dialog_size.Dialog", {
5656
this._super(...arguments);
5757
this.setSize = this.setSize.bind(this);
5858
this.getSize = this.getSize.bind(this);
59+
onWillRender(() => {
60+
if (this._forcedSize && this.props.size !== this._forcedSize) {
61+
this.props.size = this._forcedSize;
62+
}
63+
});
5964
},
6065

6166
setSize(size) {
67+
this._forcedSize = size;
6268
this.props.size = size;
6369
this.render();
6470
},

0 commit comments

Comments
 (0)