fix pdfjs styles

pull/1/head
Pierre Bondoerffer 7 years ago
parent bad5160885
commit be29236af1
No known key found for this signature in database
GPG Key ID: C0C7C0C5063F2236

@ -126,9 +126,14 @@ define([
})); }));
// make pdfs big // make pdfs big
var toolbarHeight = $iframe.find('#toolbar').height();
$iframe.find('media-tag iframe').css({ $iframe.find('media-tag iframe').css({
'height': 'calc(100vh - 64px)', 'height': 'calc(100vh - ' + toolbarHeight + 'px)',
width: 'calc(100vw - 15px)', 'width': '100vw',
'position': 'absolute',
'bottom': 0,
'left': 0,
'border': 0
}); });
}) })
.on('decryptionError', function (e) { .on('decryptionError', function (e) {

Loading…
Cancel
Save