I’ve got a scrollView; I’ve got a group that I insert into the scrollView, and I’ve got objects that I insert into the group.
When I want to “refresh” my scrollView, I call a function that remove the objects from the group.
local function limpaScrollDer() local i local function onScrollToComplete() print( "Completed" ) end for i=grupoScrollDer.numChildren,1,-1 do grupoScrollDer[i]:removeSelf() grupoScrollDer[i] = nil end scrollViewDer:scrollTo("top",{ time = 500, onComplete = onScrollToComplete }) end
And then I starts inserting other objects into my group.
If are the same number of objects (all the objects has the same height) everything is ok, but if there are more or less objects (so I expect the scrollview’s height adapts) I get the same height, so if there are less objects I gets blank space and if if there are more objects I can’t scroll across all of them.