mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
fix(android): Label now defaults to vertical-align middle (#10233)
closes https://github.com/NativeScript/NativeScript/issues/3829 https://github.com/NativeScript/NativeScript/issues/5977 https://github.com/NativeScript/NativeScript/pull/8216
This commit is contained in:
@ -39,6 +39,7 @@ export class Label extends TextBase implements LabelDefinition {
|
||||
const textView = this.nativeTextViewProtected;
|
||||
textView.setSingleLine(true);
|
||||
textView.setEllipsize(android.text.TextUtils.TruncateAt.END);
|
||||
textView.setGravity(android.view.Gravity.CENTER_VERTICAL);
|
||||
}
|
||||
|
||||
[whiteSpaceProperty.setNative](value: CoreTypes.WhiteSpaceType) {
|
||||
|
Reference in New Issue
Block a user