Merging 1.9.1 source: tweaked welcome scene to make use of the new scrollbar

This commit is contained in:
Evan Debenham 2015-11-10 04:13:07 -05:00
parent 3fdd6452db
commit bd4decc6b7

View File

@ -156,12 +156,6 @@ public class WelcomeScene extends PixelScene {
ScrollPane list = new ScrollPane( new Component() );
add( list );
list.setRect(
panel.x + panel.marginLeft(),
panel.y + panel.marginTop(),
panel.innerWidth(),
panel.innerHeight());
list.scrollTo( 0, 0 );
Component content = list.content();
content.clear();
@ -173,6 +167,13 @@ public class WelcomeScene extends PixelScene {
content.setSize( panel.innerWidth(), text.height() );
list.setRect(
panel.x + panel.marginLeft(),
panel.y + panel.marginTop(),
panel.innerWidth(),
panel.innerHeight());
list.scrollTo(0, 0);
RedButton okay = new RedButton("Okay!") {
@Override
protected void onClick() {