RoundedRectangle issue

Hello, I use Lightning.shaders.RoundedRectangle for rounded corners. But have issue the left or right side can be clipped.
image
You can see that the left side gets out from the div.


Does anyone have an idea how to fix this?

Hi

Looking at the left : -62.5px seems like you may need to make the width 1px more as you can’t have half pixels. Try adjusting the size to 124 or 126px for the button width as you probably also need even numbers

1 Like

can we set the left param?

Here are the docs with what you can change:

Just try tweaking the pixels a few to fix the cut offs.

1 Like