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

Make corner radius use DIPs #3

Closed vcooley closed 6 years ago

vcooley commented 7 years ago

Currently it appears that the cornerRadius property on android uses pixels to calculate the shadow. It would be great if it used DIPs instead so that it is easier to get pixel perfect matching of shadows when combined with an inner layout with border-radius while also supporting multiple screen resolutions and sizes.

berardo commented 6 years ago

Hey @vcooley, Thanks a lot for your suggestion (and sorry for the delay). That was the main focus of version 2.0.0. Please give it a try and let know of any issues. Btw, not only corner radius but also the elevation itself (as well as the new translationZ attribute) are now portable across different screen densities.

Thanks