 							offset:
 								"top": +position.offset.top
 								"left": +position.offset.left
-
-					#scope.position = pdfListView.getPdfPosition(true)
 
 					scope.$on "$destroy", () =>
 						localStorage "pdf.scale", scope.scale

						scope.loading = true
						scope.loaded = false
						scope.progress = 1
						# console.log 'pdfSrc =', url
						initializePosition()
						flashControls()
						# pdfListView
						#		.loadPdf(url, onProgress)
						#		.then () ->
						#			scope.$apply () ->
						#				scope.loading = false
						#				delete scope.progress
						#				initializePosition()
						#				flashControls()
				
				scope.$on "loaded", () ->
					scope.loaded = true
					scope.progress = 100

						scope.loading = false
						delete scope.progress
					, 500

				scope.fitToHeight = () ->
					scale = angular.copy (scope.scale)
