Fix regression in preview height calculation

Fix regressions introduced in a672e9d regarding the image height calculation
This commit is contained in:
Espen Fjellvær Olsen 2015-06-08 20:57:19 +02:00
parent 64c9c27f7e
commit 308b97db4c

View file

@ -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,