diff --git a/js/components/popupWindow.js b/js/components/popupWindow.js index 20436b52758..abcc6f3664f 100644 --- a/js/components/popupWindow.js +++ b/js/components/popupWindow.js @@ -58,6 +58,9 @@ class PopupWindow extends ImmutableComponent { this.forceUpdate() } } + webview.addEventListener('did-attach', () => { + webview.enablePreferredSizeMode(true) + }) webview.addEventListener('preferred-size-changed', (e) => { updateSize() })