Fix regression in preview height calculation
Fix regressions introduced in a672e9d
regarding the image height calculation
This commit is contained in:
parent
64c9c27f7e
commit
308b97db4c
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue