提交 cca6fccf 编写于 作者: W wangtiantian 提交者: Gitee

回退 'Pull Request !166 : 修复uilabel 刷新组件时设置脏区域导致死锁问题'

上级 2831b4db
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册