We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 286fcd3 commit 1a316b8Copy full SHA for 1a316b8
nativescript-core/ui/core/view/view.android.ts
@@ -1116,7 +1116,7 @@ function createNativePercentLengthProperty(options: NativePercentLengthPropertyO
1116
setPercent = options.setPercent || percentNotSupported;
1117
options = null;
1118
}
1119
- if (length == "auto") { // tslint:disable-line
+ if (length == "auto" || !length) { // tslint:disable-line
1120
setPixels(this.nativeViewProtected, auto);
1121
} else if (typeof length === "number") {
1122
setPixels(this.nativeViewProtected, layout.round(layout.toDevicePixels(length)));
0 commit comments