diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-06-09 09:31:30 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-06-09 09:31:30 +0200 |
commit | bacd5de453c90c3973319bfcae2393141605573a (patch) | |
tree | 1986cd46716b19a2391133355d58562b6b76567e /apps | |
parent | 75bd040f1cbf7988a721ff7113cfebf4f3b3dff6 (diff) | |
parent | 308b97db4c76566084f41b803939dc32ed336aab (diff) | |
download | nextcloud-server-bacd5de453c90c3973319bfcae2393141605573a.tar.gz nextcloud-server-bacd5de453c90c3973319bfcae2393141605573a.zip |
Merge pull request #16811 from espenfjo/master
Fix regression in preview height calculation
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/js/public.js | 2 |
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, |