I'm programmatically adding buttons to a container, but when the text in the button is too long, it stretches the button and the container with it.
The "Text Overrun Behavior" and "Clip Text" options both fix this, but do so by just hiding the rest of the text.
I tried adding a Label with autowrap inside of the button, but that creates even more issues: I couldn't find a way to make buttons resize to fit their children (instead the label is always overflowing), the Label theme will be used instead of the Button theme...
Is there a way to make the text autowrap and stretch the button vertically, like when you use text with newlines?
I guess I could write a function to break up the text into lines, but that sounds like it'd be really complicated since I'd have to take everything from the button width to the font family and font size into account :-(