diff --git a/frameworks/components/ui_label.cpp b/frameworks/components/ui_label.cpp index 0925c1adf284dfb2e865f0da638973cf45fa4cb5..90b1cf16e12e397567f4a919e61a5c6ccb32790a 100755 --- a/frameworks/components/ui_label.cpp +++ b/frameworks/components/ui_label.cpp @@ -275,6 +275,7 @@ void UILabel::SetY(int16_t y) void UILabel::RefreshLabel() { + Invalidate(); ellipsisIndex_ = Text::TEXT_ELLIPSIS_END_INV; if (!needRefresh_) { needRefresh_ = true; @@ -286,7 +287,6 @@ void UILabel::ReMeasure() if (!needRefresh_) { return; } - Invalidate(); needRefresh_ = false; InitLabelText(); Style style = GetStyleConst();