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
If You have ie. 1000 element list, then scroll to bottom, and reduce list to 100 elements (update from api). After refresh(), the list of elements are above virtual-scroll, leaving empty space in scroll area.
Any ideas how to solve this problem?
The text was updated successfully, but these errors were encountered:
vitoexe
changed the title
Update() of lower amount of Elements, scroll issue, empty space on bottom
Update to lower amount of Elements, scroll issue, empty space on bottom
Feb 23, 2017
The above fix not worked for variable height and width of viewport.I fixed by below code
This below fix will work even for variable height viewport items.
[virtualScroll], virtual-scroll {
overflow: hidden;
overflow-y: auto;
border: 1px solid #d1dadf;
height: calc(100% - 10px); //use to avoid empty space
display: block;
}
and set minimum child height example [childheight]="30" and set parent container overflow-y:hidden
If You have ie. 1000 element list, then scroll to bottom, and reduce list to 100 elements (update from api).
After refresh(), the list of elements are above virtual-scroll, leaving empty space in scroll area.
Any ideas how to solve this problem?
The text was updated successfully, but these errors were encountered: