Merge pull request #3804 from NativeScript/borders-clip

Borders clip
This commit is contained in:
Alexander Vakrilov
2017-03-16 09:43:11 +02:00
committed by GitHub
3 changed files with 39 additions and 18 deletions

View File

@@ -414,7 +414,7 @@ export class View extends ViewCommon {
_setNativeClipToBounds() {
let backgroundInternal = this.style.backgroundInternal;
this.nativeView.clipsToBounds = backgroundInternal.hasUniformBorder() || backgroundInternal.getUniformBorderRadius() > 0;
this.nativeView.clipsToBounds = backgroundInternal.hasBorderWidth() || backgroundInternal.hasBorderRadius();
}
}