Skip to content

Commit

Permalink
fix(collectionRepeat): don't rerender on window resize when view is c…
Browse files Browse the repository at this point in the history
…ached

Closes #2677.
  • Loading branch information
ajoslin committed Feb 5, 2015
1 parent 7134114 commit 4f0598d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/angular/directive/collectionRepeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ function($collectionRepeatManager, $collectionDataSource, $parse) {

var requiresRerender;
function rerenderOnResize() {
if ($scope.$$disconnected) return;
rerender(listExprParsed($scope));
requiresRerender = (!scrollViewContent.clientWidth && !scrollViewContent.clientHeight);
}
Expand Down

0 comments on commit 4f0598d

Please sign in to comment.