Skip to content

Commit bedd378

Browse files
committed
Made $digest optional in processUpdates() when the row height is fixed
1 parent 61cb0cc commit bedd378

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

Diff for: dist/ui-scroll-grid.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/ui-scroll.js

+5-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/ui-scroll.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/ui-scroll.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/ui-scroll.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/ui-scroll.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,10 @@ angular.module('ui.scroll', [])
396396
const updates = updateDOM();
397397

398398
// We need the item bindings to be processed before we can do adjustments
399-
!$scope.$$phase && !$rootScope.$$phase && $scope.$digest();
400-
399+
if(!rowHeight) {
400+
!$scope.$$phase && !$rootScope.$$phase && $scope.$digest();
401+
}
402+
401403
updates.inserted.forEach(w => elementRoutines.showElement(w));
402404
updates.prepended.forEach(w => elementRoutines.showElement(w));
403405
return updates;

0 commit comments

Comments
 (0)