diff --git a/tns-core-modules/ui/core/view-common.ts b/tns-core-modules/ui/core/view-common.ts index d2a7618e5..3a00ca29d 100644 --- a/tns-core-modules/ui/core/view-common.ts +++ b/tns-core-modules/ui/core/view-common.ts @@ -1034,6 +1034,9 @@ export type PercentLength = "auto" | number | { export namespace PercentLength { export function parse(value: string | Length): PercentLength { + if (value == "auto") { // tslint:disable-line + return "auto"; + } if (typeof value === "string") { let type: "%" | "dip" | "px"; let numberValue = 0;