2nd attempt to fix #138

This commit is contained in:
Andras Timar 2017-11-29 16:21:28 +01:00
parent 253202b783
commit 7f3f30b383

View File

@ -89,7 +89,7 @@ var odfViewer = {
FileList.setViewerMode(true); FileList.setViewerMode(true);
} }
var $iframe = $('<iframe id="richdocumentsframe" allowfullscreen style="width:100%;height:100%;display:block;position:absolute;top:0;" src="'+viewer+'" />'); var $iframe = $('<iframe id="richdocumentsframe" allowfullscreen style="width:100%;height:100%;display:block;position:absolute;top:0;z-index:51;" src="'+viewer+'" />');
if ($('#isPublic').val()) { if ($('#isPublic').val()) {
// force the preview to adjust its height // force the preview to adjust its height
$('#preview').append($iframe).css({height: '100%'}); $('#preview').append($iframe).css({height: '100%'});