angulargrid
angulargrid copied to clipboard
Element height calculation is incorrect intermittantly
If I refresh the grid page several times, I notice that the height applied to the grid container is calculated to be larger that than it should be on some occasions.
It seems listElms = element.children() is returning a larger number of elements than ng-repeat is creating, and this messes up the height calculation
Using $watchCollection(elem, fn) instead of $watch(elem, fn, true) solved the issue
How did you solve this issue ? what's the exact elem?
Clones required to calculate proper width/height of element was resulting on extra element on next relfow. version 0.5.2 must solve this. Check the new commit and let me know if you still face the same issue.
It seems that we still have the height problem even with version 0.6.0. The issue occurs when we update the grid content a few times (we always refresh grid after that). After that, the height of the element is significantly higher and doesn't fix even when clearing cache + refreshing page.
I can also confirm the same issue appears in 0.6.0
same issue here: I get more data doing infinite scroll, renders ok. then I get new data to replace the current items and it re-renders new items ok but the container height doesn't adapt to new collection..
Any ideas?
@s-yadav ^^^ any idea how to fix this?