Skip to content

Commit 4832179

Browse files
fix(ios): box-shadow and border-radius (NativeScript#9612)
Co-authored-by: Nathan Walker <[email protected]>
1 parent 78e9c17 commit 4832179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/ui/core/view/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ export class View extends ViewCommon implements ViewDefinition {
853853

854854
_setNativeClipToBounds() {
855855
const backgroundInternal = this.style.backgroundInternal;
856-
this.nativeViewProtected.clipsToBounds = this.nativeViewProtected instanceof UIScrollView || backgroundInternal.hasBorderWidth() || backgroundInternal.hasBorderRadius();
856+
this.nativeViewProtected.clipsToBounds = (this.nativeViewProtected instanceof UIScrollView || backgroundInternal.hasBorderWidth() || backgroundInternal.hasBorderRadius()) && !backgroundInternal.hasBoxShadow();
857857
}
858858

859859
private _setupPopoverControllerDelegate(controller: UIViewController, parent: View) {

0 commit comments

Comments
 (0)