mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(core): maxLines support for all text components (#9884)
This commit is contained in:
@@ -224,7 +224,7 @@ export class Button extends ButtonBase {
|
||||
switch (value) {
|
||||
case 'normal':
|
||||
nativeView.lineBreakMode = NSLineBreakMode.ByWordWrapping;
|
||||
nativeView.numberOfLines = 0;
|
||||
nativeView.numberOfLines = this.maxLines;
|
||||
break;
|
||||
case 'nowrap':
|
||||
case 'initial':
|
||||
|
||||
Reference in New Issue
Block a user