diff options
author | Espen Fjellvær Olsen <espen@mrfjo.org> | 2015-06-08 20:57:19 +0200 |
---|---|---|
committer | Espen Fjellvær Olsen <espen@mrfjo.org> | 2015-06-08 20:57:19 +0200 |
commit | 308b97db4c76566084f41b803939dc32ed336aab (patch) | |
tree | a8c97efa5644cbe3056cbaaadc067d9898557357 /apps | |
parent | 64c9c27f7e19745e7b7d6b51120262485e4712c6 (diff) | |
download | nextcloud-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.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, |