summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_sharing/js/public.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 17bee7b3b68..6261c70626d 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -90,7 +90,7 @@ OCA.Sharing.PublicApp = {
var token = $('#sharingToken').val();
var bottomMargin = 350;
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);
var params = {
x: previewWidth,