update demo

This commit is contained in:
pengfei.zhou
2020-04-08 20:32:25 +08:00
committed by osborn
parent 5d3ef0edb5
commit b387491c47
2 changed files with 3 additions and 2 deletions

View File

@@ -38,7 +38,8 @@ class MyDemo extends Panel {
textColor: Color.WHITE,
backgroundColor: colors[idx % colors.length],
}))
}
},
layoutConfig: layoutConfig().most(),
}),
layoutConfig: layoutConfig().most(),
}).also(v => {

View File

@@ -44,7 +44,7 @@ class SliderPanel extends Panel {
},
layoutConfig: {
widthSpec: LayoutSpec.MOST,
heightSpec: LayoutSpec.FIT,
heightSpec: LayoutSpec.MOST,
weight: 1,
},
}),