mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Border width cannot be reset to 0 on IOS
This commit is contained in:
@@ -22,16 +22,6 @@ export module ios {
|
||||
}
|
||||
ensureStyle();
|
||||
|
||||
let background = <common.Background>view.style._getValue(style.backgroundInternalProperty);
|
||||
if (!background || background.isEmpty()) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
// Clip-path
|
||||
if (background.clipPath) {
|
||||
drawClipPath(nativeView, background);
|
||||
}
|
||||
|
||||
// Borders
|
||||
|
||||
// Clear all borders
|
||||
@@ -55,6 +45,16 @@ export module ios {
|
||||
if (nativeView["leftBorderLayer"]){
|
||||
(<CAShapeLayer>nativeView["leftBorderLayer"]).removeFromSuperlayer();
|
||||
}
|
||||
|
||||
let background = <common.Background>view.style._getValue(style.backgroundInternalProperty);
|
||||
if (!background || background.isEmpty()) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
// Clip-path
|
||||
if (background.clipPath) {
|
||||
drawClipPath(nativeView, background);
|
||||
}
|
||||
|
||||
if (background.hasUniformBorder()){
|
||||
let borderColor = background.getUniformBorderColor();
|
||||
|
||||
Reference in New Issue
Block a user