Here I create a new scrollView:
local scroll = widget.newScrollView( { backgroundColor = { 34 /255, 49 /255, 63 /255 }, width = 400, height = 1000, scrollWidth = 400, horizontalScrollDisabled = true, leftPadding = 50, topPadding = 5 } ) sceneGroup:insert( scroll )
Here I check for number of children in the scrollView:
print( "scroll children: "..scroll.numChildren )
Result:
3
This is messing up the way I sort objects inside that scrollView, because I was testing to see if the scroll has children yet or not and based on that I sort the objects inside it.