未验证 提交 1b965245 编写于 作者: O openharmony_ci 提交者: Gitee

!15305 beta5:aspect ratio

Merge pull request !15305 from xiexiyun/cherry-pick-1677567981
......@@ -419,8 +419,8 @@ struct ScaleCapabilitySample {
Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) {
Column() {
Image($r("app.media.illustrator")).width('100%').height('100%')
.aspectRatio(1) // 固定宽高比
}
.aspectRatio(1) // 固定宽高比
.border({ width: 2, color: "#66F1CCB8"}) // 边框,仅用于展示效果
}
.backgroundColor("#FFFFFF")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册