mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
fix(android): allow 0-length properties (#9485)
This commit is contained in:
@ -1214,7 +1214,7 @@ function createNativePercentLengthProperty(options: NativePercentLengthPropertyO
|
|||||||
setPercent = options.setPercent || percentNotSupported;
|
setPercent = options.setPercent || percentNotSupported;
|
||||||
options = null;
|
options = null;
|
||||||
}
|
}
|
||||||
if (length == 'auto' || !length) {
|
if (length == 'auto' || length == null) {
|
||||||
// tslint:disable-line
|
// tslint:disable-line
|
||||||
setPixels(this.nativeViewProtected, auto);
|
setPixels(this.nativeViewProtected, auto);
|
||||||
} else if (typeof length === 'number') {
|
} else if (typeof length === 'number') {
|
||||||
|
Reference in New Issue
Block a user