diff --git a/tns-core-modules/ui/core/view-common.ts b/tns-core-modules/ui/core/view-common.ts index fdd4671fc..935a39d18 100644 --- a/tns-core-modules/ui/core/view-common.ts +++ b/tns-core-modules/ui/core/view-common.ts @@ -1767,16 +1767,15 @@ export const borderLeftWidthProperty = new CssProperty({ borderLeftWidthProperty.register(Style); // Border Radius properties. -const borderRadiusProperty = new ShorthandProperty({ +const borderRadiusProperty = new ShorthandProperty({ name: "borderRadius", cssName: "border-radius", getter: function (this: Style) { if (this.borderTopLeftRadius === this.borderTopRightRadius && this.borderTopLeftRadius === this.borderBottomRightRadius && this.borderTopLeftRadius === this.borderBottomLeftRadius) { - return this.borderTopLeftRadius + ""; - } else { - return `${this.borderTopLeftRadius} ${this.borderTopRightRadius} ${this.borderBottomRightRadius} ${this.borderBottomLeftRadius}`; + return this.borderTopLeftRadius; } + return `${this.borderTopLeftRadius} ${this.borderTopRightRadius} ${this.borderBottomRightRadius} ${this.borderBottomLeftRadius}`; }, converter: function (value) { if (typeof value === "string"){ diff --git a/tns-core-modules/ui/core/view.d.ts b/tns-core-modules/ui/core/view.d.ts index 1ea0062c7..60191a9eb 100644 --- a/tns-core-modules/ui/core/view.d.ts +++ b/tns-core-modules/ui/core/view.d.ts @@ -722,7 +722,7 @@ declare module "ui/core/view" { export const borderBottomWidthProperty: CssProperty; export const borderLeftWidthProperty: CssProperty; - export const borderRadiusProperty: CssProperty; + export const borderRadiusProperty: ShorthandProperty; export const borderTopLeftRadiusProperty: CssProperty; export const borderTopRightRadiusProperty: CssProperty; export const borderBottomRightRadiusProperty: CssProperty;