Border width cannot be reset to 0 on IOS

This commit is contained in:
zh-m
2016-11-24 18:10:13 +02:00
parent 2e13205797
commit aa91b0eca0
4 changed files with 49 additions and 10 deletions

View File

@@ -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();