Fixed paddings (#2552)

* Fixed paddings

* Fix tslint
This commit is contained in:
Hristo Hristov
2016-08-07 22:29:00 +03:00
committed by Hristo Hristov
parent 4f5b7aa771
commit 62fc7b305b
2 changed files with 88 additions and 26 deletions

View File

@@ -1224,7 +1224,7 @@ export var nativePaddingsProperty = new styleProperty.Property("paddingNative",
new PropertyMetadata(undefined, null, null, null, thicknessComparer));
// TODO: separate into .android/.ios files so that there is no need for such checks
var defaultPadding = platform.device.os === platform.platformNames.android ? undefined : 0;
var defaultPadding = platform.isAndroid ? undefined : 0;
export var paddingLeftProperty = new styleProperty.Property("paddingLeft", "padding-left",
new PropertyMetadata(defaultPadding, AffectsLayout, onPaddingValueChanged, isNonNegativeFiniteNumber), converters.numberConverter);