diff --git a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/CreateFormAbility/pages/MainAbility_pages.ets b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/CreateFormAbility/pages/MainAbility_pages.ets index c8c6418269c44109882b1a573364a44e09f481b4..4e173308aa63bc53d6f4d7632328fca0cceab31d 100644 --- a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/CreateFormAbility/pages/MainAbility_pages.ets +++ b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/CreateFormAbility/pages/MainAbility_pages.ets @@ -51,6 +51,7 @@ struct Index { }) .allowUpdate(this.allowUpate ) .visibility(this.isShowing ? Visibility.Visible : Visibility.Hidden) + .size({width:360,height:360}) .onAcquired((form) => { console.log("[FormComponent.host] get form, form id:" + form.id); }) diff --git a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/FormHostAbility/pages/MainAbility_pages.ets b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/FormHostAbility/pages/MainAbility_pages.ets index 5d83f39e7f4307100c560301bd7b1f0b7f0475a6..415090a3278cb1e2ff5cdd136ed55debc5ec0fbb 100644 --- a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/FormHostAbility/pages/MainAbility_pages.ets +++ b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/FormHostAbility/pages/MainAbility_pages.ets @@ -43,6 +43,7 @@ struct Index { }) .allowUpdate(this.allowUpate) .visibility(this.isShowing ? Visibility.Visible : Visibility.Hidden) + .size({width:360,height:180}) .onAcquired((form) => { console.log("[FormComponent.FormHostAbility] get form, form id:" + form.id); globalThis.formId21 = form.id