feat:update demo

This commit is contained in:
pengfei.zhou 2019-11-28 10:33:22 +08:00
parent ddc1442815
commit cefe087b3f
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class RefreshableDemo extends Panel {
}),
]).apply({
layoutConfig: layoutConfig().atmost().h(LayoutSpec.WRAP_CONTENT),
gravity: gravity().center(),
gravity: gravity().centerX(),
space: 10,
} as IVLayout))
}).apply({

View File

@ -38,7 +38,7 @@ export function boxStr(str: string, idx = 0) {
export function title(str: string) {
return text({
text: "Network Demo",
text: str,
layoutConfig: layoutConfig().w(LayoutSpec.AT_MOST),
textSize: 30,
textColor: Color.WHITE,