mirror of
https://github.com/openharmony/ace_engine_lite.git
synced 2026-07-21 08:55:21 -04:00
设置text组件文字显示默认值,水平靠左,垂直居中显示
This commit is contained in:
@@ -41,6 +41,7 @@ bool TextComponent::CreateNativeViews()
|
||||
{
|
||||
/* set default text OverFlow clip */
|
||||
uiLabel_.SetLineBreakMode(overflowMode_);
|
||||
uiLabel_.SetAlign(UITextLanguageAlignment::TEXT_ALIGNMENT_LEFT, UITextLanguageAlignment::TEXT_ALIGNMENT_CENTER);
|
||||
return CopyFontFamily(fontFamily_, ProductAdapter::GetDefaultFontFamilyName());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user