mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 09:13:13 +00:00
update the margin size of pdfng
This commit is contained in:
parent
21e5fb08cd
commit
7b4ca6501b
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ app.controller 'pdfViewerController', ['$scope', '$q', 'PDFRenderer', '$element'
|
|||
scale = {} if not scale?
|
||||
if scale.scaleMode == 'scale_mode_fit_width'
|
||||
# TODO make this dynamic
|
||||
numScale = (containerWidth - 15) / ($scope.pdfPageSize[1])
|
||||
numScale = (containerWidth - 40) / ($scope.pdfPageSize[1])
|
||||
else if scale.scaleMode == 'scale_mode_fit_height'
|
||||
# TODO magic numbers for jquery ui layout
|
||||
numScale = (containerHeight) / ($scope.pdfPageSize[0])
|
||||
|
|
Loading…
Reference in a new issue