diff --git a/arkui/ace_ets_component_common_attrss/ace_ets_component_common_attrss_aspectRatio/entry/src/main/ets/MainAbility/pages/aspectRatio/AspectRatioHeightPage.ets b/arkui/ace_ets_component_common_attrss/ace_ets_component_common_attrss_aspectRatio/entry/src/main/ets/MainAbility/pages/aspectRatio/AspectRatioHeightPage.ets index 4df01a596d51633796b4dbfc630d121a6fe3c111..567bad7bbe05f760c68fe10c770453485962e8cf 100644 --- a/arkui/ace_ets_component_common_attrss/ace_ets_component_common_attrss_aspectRatio/entry/src/main/ets/MainAbility/pages/aspectRatio/AspectRatioHeightPage.ets +++ b/arkui/ace_ets_component_common_attrss/ace_ets_component_common_attrss_aspectRatio/entry/src/main/ets/MainAbility/pages/aspectRatio/AspectRatioHeightPage.ets @@ -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()