未验证 提交 8345a832 编写于 作者: O openharmony_ci 提交者: Gitee

!9995 menu最小宽度限制AspectRatioHeightTest适配

Merge pull request !9995 from zhouyan/xts0831
......@@ -108,7 +108,7 @@ struct AspectRatioHeightPage {
} else if (this.targetView == 'Menu') {
Menu() {
MenuItem({ startIcon: $r('app.media.icon'), content: 'Menu' })
}.backgroundColor(Color.Pink).commonStyle()
}.backgroundColor(Color.Pink).commonStyle().constraintSize({minWidth: 0})
} else if (this.targetView == 'MenuItem') {
Menu() {
MenuItem({ startIcon: $r('app.media.icon'), content: 'MenuItem' }).backgroundColor(Color.Pink).commonStyle()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册