Merge pull request #8418 from mylmz10/master

fix(android): Set length value to auto when length is undefined
This commit is contained in:
Dimitar Topuzov
2020-03-10 14:17:18 +02:00
committed by GitHub

View File

@@ -1116,7 +1116,7 @@ function createNativePercentLengthProperty(options: NativePercentLengthPropertyO
setPercent = options.setPercent || percentNotSupported;
options = null;
}
if (length == "auto") { // tslint:disable-line
if (length == "auto" || !length) { // tslint:disable-line
setPixels(this.nativeViewProtected, auto);
} else if (typeof length === "number") {
setPixels(this.nativeViewProtected, layout.round(layout.toDevicePixels(length)));