mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: e2e automated tests
This commit is contained in:
@@ -200,7 +200,7 @@ export class TextBase extends TextBaseCommon {
|
||||
|
||||
[maxLinesProperty.setNative](value: CoreTypes.MaxLinesType) {
|
||||
const nativeTextViewProtected = this.nativeTextViewProtected;
|
||||
const numberOfLines = this.whiteSpace === 'normal' ? value : 1;
|
||||
const numberOfLines = this.whiteSpace !== CoreTypes.WhiteSpace.nowrap ? value : 1;
|
||||
if (nativeTextViewProtected instanceof UITextView) {
|
||||
nativeTextViewProtected.textContainer.maximumNumberOfLines = numberOfLines;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user