[Pkg-owncloud-commits] [owncloud] 342/457: Fix regression in preview height calculation

David Prévot taffit at moszumanska.debian.org
Sun Jun 28 20:06:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 308b97db4c76566084f41b803939dc32ed336aab
Author: Espen Fjellvær Olsen <espen at mrfjo.org>
Date:   Mon Jun 8 20:57:19 2015 +0200

    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(-)

diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 17bee7b..6261c70 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,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list