Android Question libGDX: ScrollPane empty until scrolled to bottom

Jeffrey Cameron

Well-Known Member
Licensed User
Longtime User
I've been working with the lgScn2DScrollPane lately trying to build a settings screen for my new app, and I've come across something I can't figure out: The scroll pane is initially displayed completely blank, but if you scroll it to the bottom everything on the pane will suddenly appear and it looks/scrolls normal from that point forward.

I've tried using the .ScrollTo() and .ScrollCenter() methods to alter this behavior but they seem to have no effect.

I've created and attached a small demo based on the "Scene2D_Lists" example program that creates a scroll pane with 10 rows (each row contains one image and one label).

Can anyone explain what I've missed or am setting up incorrectly?

Thanks in advance,

- Richard
 

Attachments

  • ScrollPane.zip
    122.8 KB · Views: 229

Jeffrey Cameron

Well-Known Member
Licensed User
Longtime User
The amount of subtle things I don't know/understand about this interface is truly staggering ;) I guess I thought it behaved like a standard HTML table and re-did the layout as needed.

Thanks for once again taking the time to help me with this!

- Richard
 
Upvote 0
Top