mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
page background fixed
This commit is contained in:
@ -155,12 +155,11 @@ export module ad {
|
|||||||
var borderWidth = v.borderWidth;
|
var borderWidth = v.borderWidth;
|
||||||
var bkg = <any>nativeView.getBackground();
|
var bkg = <any>nativeView.getBackground();
|
||||||
|
|
||||||
if (!types.isNullOrUndefined(bkg) && v.borderWidth === 0 && v.borderRadius === 0 &&
|
if (v instanceof btn.Button && !types.isNullOrUndefined(bkg) && types.isFunction(bkg.setColorFilter) &&
|
||||||
!v.style._getValue(style.backgroundImageProperty) &&
|
v.borderWidth === 0 && v.borderRadius === 0 &&
|
||||||
v.style._getValue(style.backgroundColorProperty)) {
|
types.isNullOrUndefined(v.style._getValue(style.backgroundImageProperty)) &&
|
||||||
if (bkg && bkg.setColorFilter) {
|
!types.isNullOrUndefined(v.style._getValue(style.backgroundColorProperty))) {
|
||||||
bkg.setColorFilter(v.style._getValue(style.backgroundColorProperty).android, android.graphics.PorterDuff.Mode.SRC_IN);
|
bkg.setColorFilter(v.style._getValue(style.backgroundColorProperty).android, android.graphics.PorterDuff.Mode.SRC_IN);
|
||||||
}
|
|
||||||
} else if (v.borderWidth !== 0 || v.borderRadius !== 0 || !backgroundValue.isEmpty()) {
|
} else if (v.borderWidth !== 0 || v.borderRadius !== 0 || !backgroundValue.isEmpty()) {
|
||||||
|
|
||||||
if (!(bkg instanceof dts.ad.BorderDrawable)) {
|
if (!(bkg instanceof dts.ad.BorderDrawable)) {
|
||||||
|
Reference in New Issue
Block a user