This commit is contained in:
j 2017-01-24 16:20:04 +01:00
parent 5af3120b5a
commit 605081259a

View file

@ -61,7 +61,7 @@ pandora.ui.document = function() {
that.replaceElement(1, $content = (
item.extension == 'pdf'
? Ox.PDFViewer({
height: that.height(),
height: that.height() - 16,
page: pandora.user.ui.documents[item.id]
? pandora.user.ui.documents[item.id].position
: 1,
@ -77,7 +77,7 @@ pandora.ui.document = function() {
area: pandora.user.ui.documents[item.id]
? pandora.user.ui.documents[item.id].position
: [],
height: that.height(),
height: that.height() - 16,
imageHeight: item.dimensions[1],
imagePreviewURL: pandora.getMediaURL('/documents/' + item.id + '/256p.jpg?' + item.modified),
imageURL: pandora.getMediaURL('/documents/' + item.id + '/'