mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
ArkTS的节点支持c-api设置NODE_LAYOUT_RECT
Signed-off-by: yeyinglong_admin <yeyinglong@hisilicon.com>
This commit is contained in:
parent
2327d8a9ae
commit
9702c6395d
@ -292,7 +292,7 @@ int32_t SetAttribute(ArkUI_NodeHandle node, ArkUI_NodeAttributeType attribute, c
|
||||
if (node == nullptr) {
|
||||
return ERROR_CODE_PARAM_INVALID;
|
||||
}
|
||||
if (node->type == -1) {
|
||||
if (node->type == -1 && attribute != NODE_LAYOUT_RECT) {
|
||||
return ERROR_CODE_NATIVE_IMPL_BUILDER_NODE_ERROR;
|
||||
}
|
||||
return SetNodeAttribute(node, attribute, value);
|
||||
@ -303,7 +303,7 @@ int32_t ResetAttribute(ArkUI_NodeHandle node, ArkUI_NodeAttributeType attribute)
|
||||
if (node == nullptr) {
|
||||
return ERROR_CODE_PARAM_INVALID;
|
||||
}
|
||||
if (node->type == -1) {
|
||||
if (node->type == -1 && attribute != NODE_LAYOUT_RECT) {
|
||||
return ERROR_CODE_NATIVE_IMPL_BUILDER_NODE_ERROR;
|
||||
}
|
||||
return ResetNodeAttribute(node, attribute);
|
||||
|
Loading…
Reference in New Issue
Block a user