From cca6fccf09a1ab61ccb534f2d7605a3ddff940bb Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Fri, 21 May 2021 10:08:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!166=20:?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8Duilabel=20=E5=88=B7=E6=96=B0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=97=B6=E8=AE=BE=E7=BD=AE=E8=84=8F=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E6=AD=BB=E9=94=81=E9=97=AE=E9=A2=98'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frameworks/components/ui_label.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/components/ui_label.cpp b/frameworks/components/ui_label.cpp index 0925c1a..90b1cf1 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(); -- GitLab