From be29236af18303e2b213cf8d535737a2859b0adc Mon Sep 17 00:00:00 2001 From: Pierre Bondoerffer Date: Mon, 7 Aug 2017 10:47:30 +0200 Subject: [PATCH] fix pdfjs styles --- www/file/main.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/www/file/main.js b/www/file/main.js index 11ec94650..f5e499f18 100644 --- a/www/file/main.js +++ b/www/file/main.js @@ -126,9 +126,14 @@ define([ })); // make pdfs big + var toolbarHeight = $iframe.find('#toolbar').height(); $iframe.find('media-tag iframe').css({ - 'height': 'calc(100vh - 64px)', - width: 'calc(100vw - 15px)', + 'height': 'calc(100vh - ' + toolbarHeight + 'px)', + 'width': '100vw', + 'position': 'absolute', + 'bottom': 0, + 'left': 0, + 'border': 0 }); }) .on('decryptionError', function (e) {