From 58ab01870d658f6b6ce74484bcd481abdc335fe0 Mon Sep 17 00:00:00 2001 From: Hristo Hristov Date: Wed, 15 Mar 2017 11:39:39 +0200 Subject: [PATCH] Label borders are transformed to DIP before setting to native view (#3795) --- tns-core-modules/ui/label/label.ios.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tns-core-modules/ui/label/label.ios.ts b/tns-core-modules/ui/label/label.ios.ts index 55025980e..b864c5a98 100644 --- a/tns-core-modules/ui/label/label.ios.ts +++ b/tns-core-modules/ui/label/label.ios.ts @@ -140,7 +140,7 @@ export class Label extends TextBase implements LabelDefinition { let nativeView = this.nativeView; let border = nativeView.borderThickness; nativeView.borderThickness = { - top: this.effectiveBorderTopWidth, + top: layout.toDeviceIndependentPixels(this.effectiveBorderTopWidth), right: border.right, bottom: border.bottom, left: border.left @@ -155,7 +155,7 @@ export class Label extends TextBase implements LabelDefinition { let border = nativeView.borderThickness; nativeView.borderThickness = { top: border.top, - right: this.effectiveBorderRightWidth, + right: layout.toDeviceIndependentPixels(this.effectiveBorderRightWidth), bottom: border.bottom, left: border.left }; @@ -170,7 +170,7 @@ export class Label extends TextBase implements LabelDefinition { nativeView.borderThickness = { top: border.top, right: border.right, - bottom: this.effectiveBorderBottomWidth, + bottom: layout.toDeviceIndependentPixels(this.effectiveBorderBottomWidth), left: border.left }; } @@ -185,7 +185,7 @@ export class Label extends TextBase implements LabelDefinition { top: border.top, right: border.right, bottom: border.bottom, - left: this.effectiveBorderLeftWidth + left: layout.toDeviceIndependentPixels(this.effectiveBorderLeftWidth) }; }