diff --git a/adapter/ohos/osal/data_detector_adapter.cpp b/adapter/ohos/osal/data_detector_adapter.cpp index de05a04e67d..8da80e2a334 100644 --- a/adapter/ohos/osal/data_detector_adapter.cpp +++ b/adapter/ohos/osal/data_detector_adapter.cpp @@ -280,7 +280,7 @@ void DataDetectorAdapter::InitTextDetect(int32_t startPos, std::string detectTex auto backgroundExecutor = SingleTaskExecutor::Make(context->GetTaskExecutor(), TaskExecutor::TaskType::BACKGROUND); backgroundExecutor.PostTask( [info, textFunc] { - TAG_LOGI(AceLogTag::ACE_TEXT, "DataDetectorAdapter::InitTextDetect, start AI detect, length: %{public}lu", + TAG_LOGI(AceLogTag::ACE_TEXT, "DataDetectorAdapter::InitTextDetect, start AI detect, length: %{public}zu", info.text.size()); DataDetectorMgr::GetInstance().DataDetect(info, textFunc); }, @@ -346,7 +346,7 @@ void DataDetectorAdapter::HandleUrlResult(std::vector urlEntities) void DataDetectorAdapter::ParseAIResult(const TextDataDetectResult& result, int32_t startPos) { - TAG_LOGI(AceLogTag::ACE_TEXT, "DataDetectorAdapter::ParseAIResult, ResultLength: %{public}lu, id: %{public}i", + TAG_LOGI(AceLogTag::ACE_TEXT, "DataDetectorAdapter::ParseAIResult, ResultLength: %{public}zu, id: %{public}i", result.entity.size(), GetHost() ? GetHost()->GetId() : -1); auto entityJson = JsonUtil::ParseJsonString(result.entity); CHECK_NULL_VOID(entityJson); diff --git a/frameworks/core/components_ng/base/frame_node.h b/frameworks/core/components_ng/base/frame_node.h index ffc95d6932b..ff5017bbec3 100644 --- a/frameworks/core/components_ng/base/frame_node.h +++ b/frameworks/core/components_ng/base/frame_node.h @@ -257,7 +257,7 @@ public: eventHub_->SetVisibleAreaRatiosAndCallback(callback, ratios, false); } - void SetIsCalculateInnerClip(bool isCalculateInnerClip = false) + void SetIsCalculateInnerVisibleRectClip(bool isCalculateInnerClip = true) { isCalculateInnerVisibleRectClip_ = isCalculateInnerClip; } diff --git a/frameworks/core/components_ng/pattern/text_field/text_field_pattern.cpp b/frameworks/core/components_ng/pattern/text_field/text_field_pattern.cpp index 20bb761566d..5abc21d12f7 100644 --- a/frameworks/core/components_ng/pattern/text_field/text_field_pattern.cpp +++ b/frameworks/core/components_ng/pattern/text_field/text_field_pattern.cpp @@ -6488,7 +6488,7 @@ void TextFieldPattern::CreateErrorParagraph(const std::string& content) accessibilityProperty->SetAccessibilityLevel("yes"); auto parentID = host->GetInspectorIdValue(""); errorTextNode_->UpdateInspectorId(INSPECTOR_PREFIX + ERRORNODE_PREFIX + parentID); - errorTextNode_->SetIsCalculateInnerClip(true); + errorTextNode_->MarkModifyDone(); errorTextNode_->MarkDirtyNode(PROPERTY_UPDATE_MEASURE_SELF_AND_CHILD); auto context = errorTextNode_->GetRenderContext();