mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +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;
|
||||
options = null;
|
||||
}
|
||||
if (length == 'auto' || !length) {
|
||||
if (length == 'auto' || length == null) {
|
||||
// tslint:disable-line
|
||||
setPixels(this.nativeViewProtected, auto);
|
||||
} else if (typeof length === 'number') {
|
||||
|
Reference in New Issue
Block a user