styler logic fixed again

This commit is contained in:
Vladimir Enchev
2015-06-12 15:57:06 +03:00
parent 508817fc26
commit fceafbccf3

View File

@@ -102,10 +102,7 @@ function onBorderPropertyChanged(v: view.View) {
var value = <imageSource.ImageSource>v.style._getValue(styleModule.backgroundImageSourceProperty);
if (v.borderWidth === 0 || v.borderRadius === 0 || types.isNullOrUndefined(v.backgroundColor) || types.isNullOrUndefined(value)) {
return;
}
if (v.borderWidth !== 0 || v.borderRadius !== 0 || !types.isNullOrUndefined(v.backgroundColor) || !types.isNullOrUndefined(value)) {
var nativeView = <android.view.View>v._nativeView;
var bkg = <BorderGradientDrawable>nativeView.getBackground();
@@ -126,6 +123,7 @@ function onBorderPropertyChanged(v: view.View) {
bkg.bitmap = value ? value.android : undefined;
}
}
export class DefaultStyler implements definition.stylers.Styler {
//Background methods