Merge pull request #16811 from espenfjo/master
Fix regression in preview height calculation
This commit is contained in:
commit
bacd5de453
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