MaterialSkin icon indicating copy to clipboard operation
MaterialSkin copied to clipboard

MaterialButton - Auto wordwrap

Open j-rood opened this issue 5 years ago • 4 comments

Hello,

I noticed the word wrapping is missing for the material button

image

j-rood avatar Feb 21 '20 13:02 j-rood

Buttons should not have long messages nor have 2 or more lines, that's a google material design principle. You can always use the autosize property.

leocb avatar Feb 21 '20 13:02 leocb

I completely understand that, I just think about the case where you want to have every of your buttons to have a consistent size between them

j-rood avatar Feb 21 '20 14:02 j-rood

I'll take a look at it

leocb avatar Feb 23 '20 19:02 leocb

Hi @j-rood, this can be easily achieved if you modify the function that calls the text render on the button, you can take a look at how I do this on the MaterialLabel.

leocb avatar Feb 28 '20 14:02 leocb