mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Merge pull request #1975 from NativeScript/label-line-spacing
Fixed #1757
This commit is contained in:
@ -76,6 +76,13 @@ export class Label extends common.Label {
|
|||||||
return this._ios;
|
return this._ios;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public onLoaded() {
|
||||||
|
super.onLoaded();
|
||||||
|
|
||||||
|
this.style._updateTextDecoration();
|
||||||
|
this.style._updateTextTransform();
|
||||||
|
}
|
||||||
|
|
||||||
public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void {
|
public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void {
|
||||||
var nativeView = this._nativeView;
|
var nativeView = this._nativeView;
|
||||||
if (nativeView) {
|
if (nativeView) {
|
||||||
@ -109,7 +116,7 @@ export class Label extends common.Label {
|
|||||||
this.setMeasuredDimension(widthAndState, heightAndState);
|
this.setMeasuredDimension(widthAndState, heightAndState);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class LabelStyler implements style.Styler {
|
export class LabelStyler implements style.Styler {
|
||||||
//Background methods
|
//Background methods
|
||||||
|
Reference in New Issue
Block a user