From fed77d1837b031a666d0d229e26a26f7889d1ad8 Mon Sep 17 00:00:00 2001 From: christoth Date: Thu, 3 Mar 2016 17:22:20 -0500 Subject: [PATCH] Use flexbox layout for browserplugin --- atom/renderer/lib/web-view/web-view.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/atom/renderer/lib/web-view/web-view.js b/atom/renderer/lib/web-view/web-view.js index bd128f6fffe..5b135e0427a 100644 --- a/atom/renderer/lib/web-view/web-view.js +++ b/atom/renderer/lib/web-view/web-view.js @@ -33,6 +33,7 @@ var WebViewImpl = (function() { this.on = {}; this.browserPluginNode = this.createBrowserPluginNode(); shadowRoot = this.webviewNode.createShadowRoot(); + shadowRoot.innerHTML = ''; this.setupWebViewAttributes(); this.setupFocusPropagation(); this.viewInstanceId = getNextId(); @@ -279,9 +280,7 @@ var registerBrowserPluginElement = function() { this.setAttribute('id', 'browser-plugin-' + getNextId()); // The node fills in the container. - this.style.display = 'block'; - this.style.width = '100%'; - return this.style.height = '100%'; + return this.style.flex = '1 1 auto'; }; proto.attributeChangedCallback = function(name, oldValue, newValue) { var internal;