From eb4a6cbc469f576dadedc9f5c649302d3312376e Mon Sep 17 00:00:00 2001 From: fangzhiyuan Date: Tue, 26 Aug 2025 14:59:18 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8DonSizeChange=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=B3=A8=E9=87=8A=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fangzhiyuan --- arkui/ace_engine/native/native_node.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 788f8045470..9d38bfadc46 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -7318,12 +7318,17 @@ typedef enum { /** * @brief Defines the size change event. - * + * * The event will be triggered when the component size changes. - * When the event callback occurs, the {@link ArkUI_NodeEvent} object can be obtained from the - * {@link ArkUI_UIInputEvent} object. \n + * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is + * {@link ArkUI_NodeComponentEvent}. + * {@link ArkUI_NodeComponentEvent} contains four parameters: + * ArkUI_NodeComponentEvent.data[0].f32: the width of the old rectangle. + * ArkUI_NodeComponentEvent.data[1].f32: the height of the old rectangle. + * ArkUI_NodeComponentEvent.data[2].f32: the width of the old rectangle. + * ArkUI_NodeComponentEvent.data[3].f32: the height of the old rectangle. * @since 21 - */ + */ NODE_ON_SIZE_CHANGE = 30, /** -- Gitee From f0f76e81bd0f66445b55fc4ae101fea03317fa20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=9E=97=E8=82=AF?= Date: Wed, 27 Aug 2025 01:57:44 +0000 Subject: [PATCH 2/2] update arkui/ace_engine/native/native_node.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邹林肯 --- arkui/ace_engine/native/native_node.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 9d38bfadc46..22da7f65fe0 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -7325,8 +7325,8 @@ typedef enum { * {@link ArkUI_NodeComponentEvent} contains four parameters: * ArkUI_NodeComponentEvent.data[0].f32: the width of the old rectangle. * ArkUI_NodeComponentEvent.data[1].f32: the height of the old rectangle. - * ArkUI_NodeComponentEvent.data[2].f32: the width of the old rectangle. - * ArkUI_NodeComponentEvent.data[3].f32: the height of the old rectangle. + * ArkUI_NodeComponentEvent.data[2].f32: the width of the new rectangle. + * ArkUI_NodeComponentEvent.data[3].f32: the height of the new rectangle. * @since 21 */ NODE_ON_SIZE_CHANGE = 30, -- Gitee