From f44ea792477d466d05eac0c7c114d41a4f88bb7b Mon Sep 17 00:00:00 2001 From: zhangdawei40 Date: Thu, 31 Aug 2023 12:40:03 +0000 Subject: [PATCH] fixed d169e6a from https://gitee.com/zhangdw521/xts_acts/pulls/9993 fix apicovertest by setting size of formcomponent Signed-off-by: zhangdawei40 Change-Id: I1a6a963af8aa5cd4ae9382a0faea36ceaa5b39fa --- .../src/main/ets/CreateFormAbility/pages/MainAbility_pages.ets | 1 + .../src/main/ets/FormHostAbility/pages/MainAbility_pages.ets | 1 + 2 files changed, 2 insertions(+) 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 c8c641826..4e173308a 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 5d83f39e7..415090a32 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 -- GitLab