Tablet springboard can now be scrolled

This commit is contained in:
Anthony J. Thibault 2017-01-12 13:10:31 -08:00
parent 0746d38cae
commit b251dc9ed6
2 changed files with 28 additions and 11 deletions

View file

@ -170,6 +170,13 @@ Item {
anchors.top: bgTopBar.bottom
anchors.topMargin: 0
Flickable {
id: flickable
width: parent.width
height: parent.height
contentWidth: parent.width
contentHeight: flowMain.childrenRect.height + flowMain.anchors.topMargin + flowMain.anchors.bottomMargin + flowMain.spacing
clip: true
Flow {
id: flowMain
spacing: 16
@ -183,6 +190,8 @@ Item {
anchors.topMargin: 30
}
}
}
states: [
State {
name: "muted state"

View file

@ -15,6 +15,14 @@ var button = tablet.addButton({
text: "BAM!!!"
});
var TEST_BUTTON_COUNT = 10;
for (var i = 0; i < TEST_BUTTON_COUNT; i++) {
tablet.addButton({
text: "TEST_" + i,
inDebugMode: true
});
}
// change the name and isActive state every second...
var names = ["BAM!", "BAM!!", "BAM!!!", "BAM!!!!"];
var nameIndex = 0;