新增aspectRatio参数, 修复某些情况下组件内的 Image 加载图片成功后只有componentWith, 但是componentHeight=0的情况1
Signed-off-by: qiujietian <tqj.zyy@gmail.com>
This commit is contained in:
parent
7ccb60937f
commit
5d8dd3fa0d
|
@ -67,7 +67,7 @@ struct SingleImage {
|
||||||
objectFit: ImageFit.Contain
|
objectFit: ImageFit.Contain
|
||||||
})
|
})
|
||||||
}).width(100).height(100)
|
}).width(100).height(100)
|
||||||
Text("测试aspectRatio")
|
Text("测试aspectRatio的效果")
|
||||||
.fontSize(30)
|
.fontSize(30)
|
||||||
.fontWeight(FontWeight.Bold)
|
.fontWeight(FontWeight.Bold)
|
||||||
ImageKnifeComponent({
|
ImageKnifeComponent({
|
||||||
|
|
Loading…
Reference in New Issue