angular-vs-repeat
angular-vs-repeat copied to clipboard
Scrollbar remains after all items are removed
Steps to reproduce:
- Page: http://kamilkp.github.io/angular-vs-repeat/#?tab=1 with content visible
- Scroll to the middle of the item list
- Run
angular.element(document.body).scope().items.collection.length = 0in the console to clear the items. - Run
angular.element(document.body).scope().$apply()to run digest cycle.
Expected Result: Scrollbar will get cleared as well Actual Result: Scrollbar remains
Tested in Google Chrome v49.0.2623.87 (64-bit)
Workaround: Run document.querySelector('.repeater-container').scrollTop=0 to remove the scrollbar.