rescale pdf on parent size initialisation in addition to resizes

This commit is contained in:
Brian Gough 2014-12-05 19:42:16 +00:00
parent 407cecc0d3
commit 0ae83d9be4

View file

@ -304,9 +304,9 @@ define [
scope.$watch('parentSize', (newVal, oldVal) ->
# console.log 'XXX in parentSize watch', newVal, oldVal
if newVal == oldVal
# if newVal == oldVal
# console.log 'returning because old and new are the same'
return
# return
return unless oldVal?
# console.log 'XXX calling setScale in parentSize watcher'
doRescale scope.scale