mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-27 01:03:08 +00:00
CAPI设置光标color后,设置stytle不能影响光标color
Signed-off-by: mengbin <mengbin11@huawei.com>
This commit is contained in:
parent
ba3b1dfd38
commit
6be7f9eaa4
@ -4021,8 +4021,8 @@ int32_t SetCaretStyle(ArkUI_NodeHandle node, const ArkUI_AttributeItem* item)
|
||||
// already check in entry point.
|
||||
auto* fullImpl = GetFullImpl();
|
||||
int32_t unit = GetDefaultUnit(node, UNIT_VP);
|
||||
fullImpl->getNodeModifiers()->getTextInputModifier()->setTextInputCaretStyle(
|
||||
node->uiNodeHandle, item->value[NUM_0].f32, unit, item->value[NUM_0].u32);
|
||||
fullImpl->getNodeModifiers()->getTextInputModifier()->setTextInputCaret(
|
||||
node->uiNodeHandle, item->value[NUM_0].f32, unit);
|
||||
return ERROR_CODE_NO_ERROR;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user