From 2236097f78c67137bfb418b8b5cd2ebac792d02a Mon Sep 17 00:00:00 2001 From: Peter Brant Date: Fri, 24 Feb 2017 15:35:21 +0100 Subject: [PATCH] Fix extra scrollbar on viewer - Set display: block on to keep the enclosing
from taking up space - Don't reappend listener
. It's already where it should be. --- web/viewer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/viewer.js b/web/viewer.js index 2f85eccef7e31..26e7dc940c070 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -1468,6 +1468,7 @@ function webViewerInitialized() { if (imageStreamDecoderListener) { var moduleEl = document.createElement('embed'); + moduleEl.setAttribute('style', 'display: block;'); moduleEl.setAttribute('width', 0); moduleEl.setAttribute('height', 0); moduleEl.setAttribute('path', 'image_stream_decoder'); @@ -1493,8 +1494,6 @@ function webViewerInitialized() { listenerEl.addEventListener('error', disableImageStreamDecoder('error'), true); listenerEl.addEventListener('crash', disableImageStreamDecoder('crash'), true); listenerEl.appendChild(moduleEl); - - document.body.appendChild(listenerEl); } //#if !(FIREFOX || MOZCENTRAL)