scrollPane.setSize(400,400);
scrollPane.source=emptyc;
Where emptyc is a container in which I add content dynamically (i.e. by addChild method) doesn’t work. It simply doesn’t scroll at all.
Neither does work if I add content using scrollPane as a container itself (i.e.:
scrollPane.addChild(myChild);
The problem is the ScollPane instance has no clue you’ve updated it’s content (added a child to emptyc/etc.) so you need to tell it to update().
Here’s a basic example:
Notice that you get the same behaviour you mention if you comment out
sp.update();.Also, there’s an example in the documentation.