Nativescript Gridview inside ScrollView - height = 0


#1

Hi Guys,
I’m wondering it this is plugns’s issue, but when Gridview is inside od Scrollview, it’s height is 0.
I see no workaround for this, i’ve tried to calculate height of this grid, but this returns 0 always.
Do you have maybe some experience with this ?
Cheers!
https://www.npmjs.com/package/nativescript-grid-view


#2

You may not need a scroll view, grid view plugin itself should provide scrollable content.


#3

Hi,
Thanks, but . i have more items than gridview only, there is header, footer navigation etc…


#4

Coming back to first rule, you can’t simply nest scrollable contents. Use a GridLayout to slit your screen for header and footer, let the content be scrollable?


#5

Understood, thanks. It’s now perfectly clear for me.