Especializa / nativescript-ng-shadow

Angular directive to apply shadows to native elements according to the elevation level guidelines of material design specification
Apache License 2.0
54 stars 38 forks source link

Fixed missing layout shadows on iOS #5

Open alexziskind1 opened 6 years ago

alexziskind1 commented 6 years ago

Really I just added 1 line of code. The rest of it is just auto-formatting.

berardo commented 6 years ago

Hi @alexziskind1 thanks a lot for finding time to help me out with this plugin. Would you mind saying what's the benefit of explicitly switching off clipToBounds? I'm already doing that for ios.layer.maskToBounds which is equivalent to ios.layer.clipsToBounds (plural clips). Was under the impression that clipToBounds was simply Nativescript exposing the native property. Cheers

alexziskind1 commented 6 years ago

Hi @berardo . I've tried it without having the clipsToBounds and it simply wasn't working. The only way I was able to get it to work was by using this property. I've also seen the same issue with some other folks on here. It may be that this property is not properly surfaced in the NativeScript view life-cycle, but this provides a functioning workaround.