mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
rescale pdf on parent size initialisation in addition to resizes
This commit is contained in:
parent
407cecc0d3
commit
0ae83d9be4
1 changed files with 3 additions and 3 deletions
|
@ -304,9 +304,9 @@ define [
|
|||
|
||||
scope.$watch('parentSize', (newVal, oldVal) ->
|
||||
# console.log 'XXX in parentSize watch', newVal, oldVal
|
||||
if newVal == oldVal
|
||||
# console.log 'returning because old and new are the same'
|
||||
return
|
||||
# if newVal == oldVal
|
||||
# console.log 'returning because old and new are the same'
|
||||
# return
|
||||
return unless oldVal?
|
||||
# console.log 'XXX calling setScale in parentSize watcher'
|
||||
doRescale scope.scale
|
||||
|
|
Loading…
Reference in a new issue