Skip to content
Snippets Groups Projects
Commit 308b97db authored by Espen Fjellvær Olsen's avatar Espen Fjellvær Olsen
Browse files

Fix regression in preview height calculation

Fix regressions introduced in a672e9d5 regarding the image height calculation
parent 64c9c27f
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ OCA.Sharing.PublicApp = { ...@@ -90,7 +90,7 @@ OCA.Sharing.PublicApp = {
var token = $('#sharingToken').val(); var token = $('#sharingToken').val();
var bottomMargin = 350; var bottomMargin = 350;
var previewWidth = $(window).width() * window.devicePixelRatio; var previewWidth = $(window).width() * window.devicePixelRatio;
var previewHeight = $(window).height() - bottomMargin * window.devicePixelRatio; var previewHeight = ($(window).height() - bottomMargin) * window.devicePixelRatio;
previewHeight = Math.max(200, previewHeight); previewHeight = Math.max(200, previewHeight);
var params = { var params = {
x: previewWidth, x: previewWidth,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment