未验证 提交 de2632ea 编写于 作者: O openharmony_ci 提交者: Gitee

!895 修复字符串偏上问题

Merge pull request !895 from 张兴泰/master
......@@ -366,9 +366,9 @@ void UILabel::RemeasureForMarquee(int16_t textWidth)
if (textWidth > rectWidth) {
offsetX_ = GetRollStartPos();
if (labelText_->GetDirect() == TEXT_DIRECT_RTL) {
labelText_->SetAlign(TEXT_ALIGNMENT_RIGHT);
labelText_->SetAlign(TEXT_ALIGNMENT_RIGHT, GetVerAlign());
} else {
labelText_->SetAlign(TEXT_ALIGNMENT_LEFT);
labelText_->SetAlign(TEXT_ALIGNMENT_LEFT, GetVerAlign());
}
if (hasAnimator_) {
static_cast<LabelAnimator*>(animator_.animator)->UpdateWidth(textWidth, rectWidth);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册