From 0ae83d9be4731d294d239b137ea5a0783a89f8ca Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Fri, 5 Dec 2014 19:42:16 +0000 Subject: [PATCH] rescale pdf on parent size initialisation in addition to resizes --- .../web/public/coffee/ide/pdfng/directives/pdfViewer.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee b/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee index 01ef6e16b4..f76431f292 100644 --- a/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee +++ b/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee @@ -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