Merge pull request #16811 from espenfjo/master

Fix regression in preview height calculation
This commit is contained in:
Morris Jobke 2015-06-09 09:31:30 +02:00
commit bacd5de453

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,