diff --git a/tns-core-modules/ui/label/label.ios.ts b/tns-core-modules/ui/label/label.ios.ts index 1354180ca..dbcf2ee35 100644 --- a/tns-core-modules/ui/label/label.ios.ts +++ b/tns-core-modules/ui/label/label.ios.ts @@ -72,13 +72,8 @@ export class Label extends common.Label { height = Number.POSITIVE_INFINITY; } - //if (this.text !== "") { - this._fixedSize = (widthMode === utils.layout.EXACTLY ? FixedSize.WIDTH : FixedSize.NONE) - | (heightMode === utils.layout.EXACTLY ? FixedSize.HEIGHT : FixedSize.NONE); - //} - //else { - // this._fixedSize = FixedSize.NONE; - //} + this._fixedSize = (widthMode === utils.layout.EXACTLY ? FixedSize.WIDTH : FixedSize.NONE) + | (heightMode === utils.layout.EXACTLY ? FixedSize.HEIGHT : FixedSize.NONE); var nativeSize = nativeView.sizeThatFits(CGSizeMake(width, height)); var labelWidth = nativeSize.width;