From 308b97db4c76566084f41b803939dc32ed336aab Mon Sep 17 00:00:00 2001 From: Espen Fjellvær Olsen Date: Mon, 8 Jun 2015 20:57:19 +0200 Subject: Fix regression in preview height calculation Fix regressions introduced in a672e9d regarding the image height calculation --- apps/files_sharing/js/public.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_sharing') 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, -- cgit v1.2.3