From: Mal Graty Date: Sat, 21 Feb 2015 22:34:57 +0000 (+0000) Subject: Prevent overflow on webview with height: 100% X-Git-Tag: v0.21.3~4^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=7eecb84898eb8874fdf813f0c43dbadd8ce83f13;p=electron.git Prevent overflow on webview with height: 100% Without this, the object element gets displayed `inline` which in chromium means that it slightly exceeds it's bounds. Unfortunately there's no nice way to mitigate this issue as I can't find a way to get extra css into this intermediate page. However, forcing a block display solves the issue. --- diff --git a/atom/renderer/lib/web-view/web-view.coffee b/atom/renderer/lib/web-view/web-view.coffee index 727a462d..996ab176 100644 --- a/atom/renderer/lib/web-view/web-view.coffee +++ b/atom/renderer/lib/web-view/web-view.coffee @@ -186,6 +186,7 @@ registerBrowserPluginElement = -> @setAttribute 'type', 'application/browser-plugin' @setAttribute 'id', 'browser-plugin-' + getNextId() # The node fills in the container. + @style.display = 'block' @style.width = '100%' @style.height = '100%'