summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorEspen Fjellvær Olsen <espen@mrfjo.org>2015-06-08 20:57:19 +0200
committerEspen Fjellvær Olsen <espen@mrfjo.org>2015-06-08 20:57:19 +0200
commit308b97db4c76566084f41b803939dc32ed336aab (patch)
treea8c97efa5644cbe3056cbaaadc067d9898557357 /apps
parent64c9c27f7e19745e7b7d6b51120262485e4712c6 (diff)
downloadnextcloud-server-308b97db4c76566084f41b803939dc32ed336aab.tar.gz
nextcloud-server-308b97db4c76566084f41b803939dc32ed336aab.zip
Fix regression in preview height calculation
Fix regressions introduced in a672e9d regarding the image height calculation
Diffstat (limited to 'apps')
-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,