I'm currently with no idea of what's going on with libGDX (Android only) today... I have my beautyfull table, with buttons and some other stuff, and I added the ScrollPane to scroll (Obviously), then I added everything inside other table and changed the size values to the center of the screen, scaled, etc. And now the ScrollPane isn't working...
buttonsTable = new Table();
buttonsTable.center().center();
// adding buttons and buttons and more buttons...
ScrollPane scroller = new ScrollPane(buttonsTable);
scroller.layout();
scrollableTable = new Table();
scrollableTable.center().center();
scrollableTable.add(scroller);
this.stage.addActor(scrollableTable);
// SIZE_WIDTH and SIZE_HEIGHT are the size of my screen
scrollableTable.pack();
scrollableTable.setTransform(true);
scrollableTable.setScale(0.5f,0.5f); // I changed the scale of the table(1/2)
scrollableTable.setPosition(SIZE_WIDTH/2 - scrollableTable.getWidth()/4, SIZE_HEIGHT/2 - scrollableTable.getHeight()/4);
// It doesn't update its height and width, so I just divide by 2 and by 2 again to go to the center
The table is in the center of my screen, but now the ScrollPane is 'broken'...
OBS: I called stage.act(Gdx.graphics.getDeltaTime()) inside render() and Gdx.input.setInputProcessor(stage); inside the Screen's constructor.
Gdx.input.setInputProcessor(stage);- Abhishek Aryan