提交 a762149b 编写于 作者: X xing-tai-zhang

Description: Fixed the problem that the character string is biased

upward
IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I6FX92
Feature or Bugfix: Bugfix
Binary Source:NO
Signed-off-by: Nxing-tai-zhang <zhangxingtai@huawei.com>
上级 84ac5c00
......@@ -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.
先完成此消息的编辑!
想要评论请 注册