mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Remove optimisation
This commit is contained in:
@@ -141,34 +141,19 @@ function refreshBorderDrawable(view: view.View, borderDrawable: org.nativescript
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let newBackground = JSON.stringify({
|
borderDrawable.refresh(
|
||||||
w: borderWidth,
|
borderWidth,
|
||||||
c: borderColor,
|
borderColor,
|
||||||
r: borderRadius,
|
borderRadius,
|
||||||
cp: clipPath,
|
clipPath,
|
||||||
bc: backgroundColor,
|
backgroundColor,
|
||||||
bi: backgroundImage ? backgroundImage.hashCode() : "",
|
backgroundImage,
|
||||||
br: backgroundRepeat,
|
backgroundRepeat,
|
||||||
bp: backgroundPosition,
|
backgroundPosition,
|
||||||
bs: backgroundSize
|
backgroundPositionParsedCSSValues,
|
||||||
});
|
backgroundSize,
|
||||||
|
backgroundSizeParsedCSSValues
|
||||||
if (newBackground !== view["android-backround"]){
|
);
|
||||||
borderDrawable.refresh(
|
|
||||||
borderWidth,
|
|
||||||
borderColor,
|
|
||||||
borderRadius,
|
|
||||||
clipPath,
|
|
||||||
backgroundColor,
|
|
||||||
backgroundImage,
|
|
||||||
backgroundRepeat,
|
|
||||||
backgroundPosition,
|
|
||||||
backgroundPositionParsedCSSValues,
|
|
||||||
backgroundSize,
|
|
||||||
backgroundSizeParsedCSSValues
|
|
||||||
);
|
|
||||||
view["android-backround"] = newBackground;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function createNativeCSSValueArray(css: string): native.Array<org.nativescript.widgets.CSSValue>{
|
function createNativeCSSValueArray(css: string): native.Array<org.nativescript.widgets.CSSValue>{
|
||||||
|
|||||||
Reference in New Issue
Block a user