mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
!39703 ArkTS的节点支持c-api设置NODE_LAYOUT_RECT
Merge pull request !39703 from yeyinglong/listtest5
This commit is contained in:
commit
00df734746
@ -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