Closed bzaruk closed 6 years ago
@bradmartin Ok I had a little mistake...it looks like the value need to be 3 times the actual picture radius...But I wonder why is that? why can it get the actual value?
Not sure without debugging it đŸ˜„ - looks like you use angular. In that case here is something that might be a better approach for what you need. https://github.com/Especializa/nativescript-ng-shadow
@bradmartin - Thanks a lot! I will give it a try!
Hi,
I am on something very strange: I am drawing an circle picture (avatar) and I want to add a shadow to it. My circle picture is a custom component that gets the radius of the picture and creates the rounded picture by setting the height and width double time the radius I pass...For example:
custom component HTML:
as you can see the width and height are double time the borderRadius to create the circle shape
So I thought that the
radius
parameter of theCardView
got the have the same but it is actually have to be much bigger and without relation to the radius of the shape.for example in my example I have to set the
radius
of theCardView
to 120 (triple time value). And when I set myrounded-picture
component to have aradius
value of 30, I thought the I should set theCardView
to 90, but actually it isn't go well, and I didn't find the right value without making it look bad.Any idea why?
Thank you! :)