newScrollView Widget, not removing all contents

I think there may be a problem with newScrollView.

sv:insert(a) sv:insert(b sv:insert(c) display.remove(sv)

Should this not remove all the display objects added to the scrollview? because it does not. It leaves some.

Hi @prographodeveloper,

There’s a syntax error in your code posted here (no ending “)” on line 2). Also, we don’t know what type of objects “a”, “b”, and “c” are. Please post more code or be specific on what object(s) are not being removed.

Thanks,

Brent

it’s ok, I just made a display group, add the stuff to that as well as the scrollview then removeSelf() on the group when I remove the scroll view.  

Hi @prographodeveloper,

There’s a syntax error in your code posted here (no ending “)” on line 2). Also, we don’t know what type of objects “a”, “b”, and “c” are. Please post more code or be specific on what object(s) are not being removed.

Thanks,

Brent

it’s ok, I just made a display group, add the stuff to that as well as the scrollview then removeSelf() on the group when I remove the scroll view.