Merging 1.9.1 source: tweaked welcome scene to make use of the new scrollbar
This commit is contained in:
parent
3fdd6452db
commit
bd4decc6b7
|
@ -156,12 +156,6 @@ public class WelcomeScene extends PixelScene {
|
||||||
|
|
||||||
ScrollPane list = new ScrollPane( new Component() );
|
ScrollPane list = new ScrollPane( new Component() );
|
||||||
add( list );
|
add( list );
|
||||||
list.setRect(
|
|
||||||
panel.x + panel.marginLeft(),
|
|
||||||
panel.y + panel.marginTop(),
|
|
||||||
panel.innerWidth(),
|
|
||||||
panel.innerHeight());
|
|
||||||
list.scrollTo( 0, 0 );
|
|
||||||
|
|
||||||
Component content = list.content();
|
Component content = list.content();
|
||||||
content.clear();
|
content.clear();
|
||||||
|
@ -173,6 +167,13 @@ public class WelcomeScene extends PixelScene {
|
||||||
|
|
||||||
content.setSize( panel.innerWidth(), text.height() );
|
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!") {
|
RedButton okay = new RedButton("Okay!") {
|
||||||
@Override
|
@Override
|
||||||
protected void onClick() {
|
protected void onClick() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user