From 7eecb84898eb8874fdf813f0c43dbadd8ce83f13 Mon Sep 17 00:00:00 2001 From: Mal Graty Date: Sat, 21 Feb 2015 22:34:57 +0000 Subject: [PATCH] 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. --- atom/renderer/lib/web-view/web-view.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/atom/renderer/lib/web-view/web-view.coffee b/atom/renderer/lib/web-view/web-view.coffee index 727a462d1ac6..996ab176056a 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%'