angulargrid icon indicating copy to clipboard operation
angulargrid copied to clipboard

Element height calculation is incorrect intermittantly

Open nathanpower opened this issue 8 years ago • 8 comments

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.

nathanpower avatar Nov 26 '15 16:11 nathanpower

It seems listElms = element.children() is returning a larger number of elements than ng-repeat is creating, and this messes up the height calculation

nathanpower avatar Nov 26 '15 18:11 nathanpower

Using $watchCollection(elem, fn) instead of $watch(elem, fn, true) solved the issue

nathanpower avatar Nov 26 '15 20:11 nathanpower

How did you solve this issue ? what's the exact elem?

escapar avatar Feb 12 '16 05:02 escapar

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.

s-yadav avatar Feb 20 '16 20:02 s-yadav

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.

stzoannos avatar Jul 26 '16 07:07 stzoannos

I can also confirm the same issue appears in 0.6.0

douwevdijk avatar Sep 19 '16 08:09 douwevdijk

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?

dublx avatar Mar 13 '17 10:03 dublx

@s-yadav ^^^ any idea how to fix this?

dublx avatar Mar 13 '17 10:03 dublx