When utilizing nativescript-ng, the ListView does not render all items simultaneously.
I have an array containing approximately 26 items, currently just strings. Upon using tns debug ios
and inspecting my Chrome browser, I noticed that only 20 items are being rendered, even though the ListView height is set to 1000. Even when adding more items, the height remains unchanged and the last item displayed is in position 20.
I am incorporating animation on the ListView's translateY property, necessitating the full height for the animation to function properly.
<GridLayout rows="auto, auto" columns="*">
<MapView height="400" ...></MapView>
<ListView [items]="countries" class="list-group" row="1" col="0">
<StackLayout *ngFor="let item of countries" height="100">
<Label [text]="item"></Label>
</StackLayout >
</ListView>
</GridLayout
this.countries = ["Austria", "Belgium", "Bulgaria", "Croatia", "Cyprus", "Czech Republic",
"Denmark", "Estonia", "Finland", "France", "Germany", "Greece", "Hungary", "Ireland", "Italy",
"Latvia", "Lithuania", "Luxembourg", "Malta", "Netherlands", "Poland", "Portugal", "Romania", "Slovakia",
"Slovenia", "Spain", "Sweden", "United Kingdom"];
expected: The ListView height should be the total sum of all its children's heights. In this case, approximately 2600.
actual: The ListView height is restricted to 1000.