mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 21:59:00 +02:00
rescale pdf on parent size initialisation in addition to resizes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user