height of element not updated after angularjs updates dom until I interact with page -
i'm learning angularjs apologies if don't explain well.
i have unordered list populated array using ng-repeat
. list contents can changed selecting different category select box. when list scrolled down, further populated using infinite-scroll type arrangement.
the problem is, after array changed selecting different category, result of elem.height()
(where elem
refers <ul>
) still reflects height of <ul>
before updated. when scroll page down, result of elem.height()
updated correct value, not before infinite-scroll code has seen old incorrect value , made undesired http request.
i'm hoping enough information describe problem. there way of forcing elem.height() updated after angularjs has modified dom?
Comments
Post a Comment