I have the following code `OutlinedButton(shape = ...
# compose
o
I have the following code
OutlinedButton(shape = RoundedCornerShape(28.dp))
It looks like it only applies it to the top corners? Is this a bug?
I guess the numbers were too large, percent = 50 fixed it for me
☝️ 1
a
yeah, if the sum of requested corner sizes is larger than the available size the top one wins
n
Wouldn't it be better to apply them proportionally. So in this case act as 50%
a
maybe, but in this case you would never realise you incorrectly specified the size
👍 1
this obviously wrong behaviour makes you realise you specified something wrong
n
Hmm I'm not sure, I think if you tried to draw a round rect with a large enough radii it would automatically clamp to the largest possible size. Drawing a round rect directly vs recreating it through paths should generate the same result
a
yeah, we can change it if you think it is inconsistent with other places. feel free to file a bug
n
Thanks Andrey, I just filed one to track this.