From d6214221626636c8578ab45bf11357c54b087736 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Wed, 9 Jan 2019 09:00:08 +0100 Subject: [PATCH] modal: fix init order (resize glitch on recent chrome) --- CHANGELOG.md | 1 + src/client/app/widgets/containers/modal.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a21dd633..37d08ee8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - bug fixes - geometry properties not properly applied when reset to `auto` - `strip` layout not properly applied when changing the widget's `horizontal` property + - `modal` glitch on chromium v70 ## 0.41.1 diff --git a/src/client/app/widgets/containers/modal.js b/src/client/app/widgets/containers/modal.js index 05fba710..2660bb15 100644 --- a/src/client/app/widgets/containers/modal.js +++ b/src/client/app/widgets/containers/modal.js @@ -123,11 +123,12 @@ module.exports = class Modal extends Panel { this.bindEscKey(this.value) + if (this.init) this.fixParents() + if (this.value) { resize.check(this.widget, true) } - if (this.init) this.fixParents() if (options.send) this.sendValue() if (options.sync) this.changed(options)