https://kotlinlang.org logo
o

Orhan Tozan

03/03/2021, 10:03 AM
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

Andrey Kulikov

03/03/2021, 12:53 PM
yeah, if the sum of requested corner sizes is larger than the available size the top one wins
n

natario1

03/03/2021, 1:00 PM
Wouldn't it be better to apply them proportionally. So in this case act as 50%
a

Andrey Kulikov

03/03/2021, 1:08 PM
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

Nader Jawad

03/04/2021, 9:10 PM
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

Andrey Kulikov

03/04/2021, 11:50 PM
yeah, we can change it if you think it is inconsistent with other places. feel free to file a bug
n

Nader Jawad

03/04/2021, 11:59 PM
Thanks Andrey, I just filed one to track this.