Просмотр исходного кода

rescale pdf on parent size initialisation in addition to resizes

Brian Gough 12 лет назад
Родитель
Сommit
0ae83d9be4
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee

+ 3 - 3
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