mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-19 14:43:36 -04:00
!2318 修复marquee在更新后,文本较短时,仍可滚动
Merge pull request !2318 from caocan/master
This commit is contained in:
@@ -292,6 +292,7 @@ void RenderMarquee::PerformLayout()
|
||||
LOGD("layoutSize: %{public}s, child: %{public}s", layoutSize.ToString().c_str(),
|
||||
childText_->GetLayoutSize().ToString().c_str());
|
||||
if (!NeedMarquee()) {
|
||||
Stop();
|
||||
childText_->SetPosition(Offset(0.0, 0.0));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user