提交 51ea7050 编写于 作者: Z zcdqs

add layoutWeight to avoid Image from going out of FlowItem

Signed-off-by: Nzcdqs <junfeng.lijunfeng@huawei.com>
Change-Id: Iba2121decb28e8d15c81c74a6f3d79d048d62933
上级 ef7b036a
......@@ -260,6 +260,8 @@ struct WaterflowDemo {
Text("N" + item).fontSize(12).height('16')
Image('res/waterFlowTest(' + item % 5 + ').jpg')
.objectFit(ImageFit.Fill)
.width('100%')
.layoutWeight(1)
}
}
.width(this.itemWidthArray[item])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册