You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time that ui.grid.autoResize polls for size changes it calls $apply (by way of $timeout). This can be very heavy on a site with a lot of watchers or complex $watch listeners.
At the very least I propose that we stop calling $apply as part of $timeout and call it explicitly instead. Even better yet I think that maybe we should only resize on $apply. Worst case we could support both.
Here is a plnkr example that I will make into a PR once we figure out which way we want to go with this.
The text was updated successfully, but these errors were encountered:
Every time that
ui.grid.autoResize
polls for size changes it calls$apply
(by way of$timeout
). This can be very heavy on a site with a lot of watchers or complex$watch
listeners.At the very least I propose that we stop calling
$apply
as part of$timeout
and call it explicitly instead. Even better yet I think that maybe we should only resize on$apply
. Worst case we could support both.Here is a plnkr example that I will make into a PR once we figure out which way we want to go with this.
The text was updated successfully, but these errors were encountered: