584
584
< span class ="cstat-no " title ="statement not covered " > scrollPos = origScrollPos + window.innerHeight;</ span >
585
585
}
586
586
587
- < span class ="cstat-no " title ="statement not covered " > progress = (scrollPos <= top) ? 0 : ((scrollPos-top) / (top-bottom )) * 100;</ span >
587
+ < span class ="cstat-no " title ="statement not covered " > progress = (scrollPos <= top) ? 0 : ((scrollPos-top) / (article[0].offsetHeight )) * 100;</ span >
588
588
589
589
< span class ="cstat-no " title ="statement not covered " > if (options.readingTime.enable) {</ span >
590
590
< span class ="cstat-no " title ="statement not covered " > scope.$apply( < span class ="fstat-no " title ="function not covered " > function(){</ span > </ span >
@@ -596,11 +596,11 @@ <h2>
596
596
597
597
< span class ="cstat-no " title ="statement not covered " > progressBar.style.width = progress + '%';</ span >
598
598
599
- < span class ="cstat-no " title ="statement not covered " > if ((!options.expand && options.type === 'small' && scrollPos >= (top + expandOffset.top + options.topOffset)) || (options.expand && scrollPos > top && scrollPos < (top + expandOffset.top + options.topOffset))) {</ span >
599
+ < span class ="cstat-no " title ="statement not covered " > if ((!options.expand && options.type === 'small' && origScrollPos >= (top + expandOffset.top + options.topOffset)) || (options.expand && origScrollPos > top && origScrollPos < (top + expandOffset.top + options.topOffset))) {</ span >
600
600
< span class ="cstat-no " title ="statement not covered " > angular.element(element)[0].style.height = '5px';</ span >
601
601
< span class ="cstat-no " title ="statement not covered " > angular.element(element).addClass('ng-reading-indicator-shrink');</ span >
602
602
< span class ="cstat-no " title ="statement not covered " > angular.element(element).removeClass('ng-reading-indicator-expanded');</ span >
603
- } else < span class ="cstat-no " title ="statement not covered " > if (((!options.expand && options.type === 'big') || options.expand) && scrollPos >= (top + expandOffset.top + options.topOffset)) {</ span >
603
+ } else < span class ="cstat-no " title ="statement not covered " > if (((!options.expand && options.type === 'big') || options.expand) && origScrollPos >= (top + expandOffset.top + options.topOffset)) {</ span >
604
604
< span class ="cstat-no " title ="statement not covered " > angular.element(element).removeClass('ng-reading-indicator-shrink');</ span >
605
605
< span class ="cstat-no " title ="statement not covered " > angular.element(element).addClass('ng-reading-indicator-expanded');</ span >
606
606
< span class ="cstat-no " title ="statement not covered " > angular.element(element)[0].style.height = '';</ span >
660
660
661
661
</ div >
662
662
< div class ="footer ">
663
- < div class ="meta "> Generated by < a href ="http://istanbul-js.org/ " target ="_blank "> istanbul</ a > at Thu Jul 16 2015 11:55:11 GMT+0200 (CEST)</ div >
663
+ < div class ="meta "> Generated by < a href ="http://istanbul-js.org/ " target ="_blank "> istanbul</ a > at Thu Jul 16 2015 12:31:08 GMT+0200 (CEST)</ div >
664
664
</ div >
665
665
< script src ="../prettify.js "> </ script >
666
666
< script >
0 commit comments