mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-12-03 13:06:04 +00:00
[挑单5.0Release]优化text paragraph reset操作重新布局时才做paragraph的清除
Signed-off-by: zhouyan <zhouyan162@huawei.com>
This commit is contained in:
parent
df4081280e
commit
a3735ed424
@ -2044,12 +2044,6 @@ void TextPattern::OnModifyDone()
|
||||
auto renderContext = host->GetRenderContext();
|
||||
CHECK_NULL_VOID(renderContext);
|
||||
|
||||
if (CheckNeedMeasure(textLayoutProperty->GetPropertyChangeFlag()) && pManager_) {
|
||||
// measure flag changed, reset paragraph.
|
||||
ACE_TEXT_SCOPED_TRACE("OnModifyDone[Text][id:%d]", host->GetId());
|
||||
pManager_->Reset();
|
||||
}
|
||||
|
||||
if (!(PipelineContext::GetCurrentContextSafely() &&
|
||||
PipelineContext::GetCurrentContextSafely()->GetMinPlatformVersion() > API_PROTEXTION_GREATER_NINE)) {
|
||||
bool shouldClipToContent =
|
||||
|
Loading…
Reference in New Issue
Block a user