diff --git a/tns-core-modules/ui/text-base/text-base.ios.ts b/tns-core-modules/ui/text-base/text-base.ios.ts index f711086e3..e2a966c66 100644 --- a/tns-core-modules/ui/text-base/text-base.ios.ts +++ b/tns-core-modules/ui/text-base/text-base.ios.ts @@ -131,6 +131,10 @@ export class TextBase extends TextBaseCommon { paragraphStyle.lineSpacing = this.lineHeight; // make sure a possible previously set text alignment setting is not lost when line height is specified paragraphStyle.alignment = (this.nativeViewProtected).textAlignment; + if (this.nativeViewProtected instanceof UILabel) { + // make sure a possible previously set line break mode is not lost when line height is specified + paragraphStyle.lineBreakMode = this.nativeViewProtected.lineBreakMode; + } attrText.addAttributeValueRange(NSParagraphStyleAttributeName, paragraphStyle, { location: 0, length: attrText.length }); } @@ -171,6 +175,10 @@ export class TextBase extends TextBaseCommon { paragraphStyle.lineSpacing = style.lineHeight; // make sure a possible previously set text alignment setting is not lost when line height is specified paragraphStyle.alignment = (this.nativeViewProtected).textAlignment; + if (this.nativeViewProtected instanceof UILabel) { + // make sure a possible previously set line break mode is not lost when line height is specified + paragraphStyle.lineBreakMode = this.nativeViewProtected.lineBreakMode; + } dict.set(NSParagraphStyleAttributeName, paragraphStyle); }