-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(AutoResize): Avoid excessive $digests
Using $timeout for the loop to check whether the grid dimensions have changed or not is causing a $digest() loop every 250ms. This can cause quite a lot of slow-down in a large grid. Changing to explicitly calling $apply() within a setTimeout() when the dimensions have changed should fix this. The tests have been updated to use Jasmine's async features to cover this alteration. Fixes #2284. Fixes #2247
- Loading branch information
Showing
2 changed files
with
28 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters