I don’t want to scale the font. I want to scale the button to the text size. Better I want to scale a container to it’s content + padding.
Both features you mentioned don’t help here. I puzzled almost two hours in the morning how to do this and couldn’t believe it is not possible. After reading and trying almost everything I was some how upset because it should be so simple and basic functionality. The usual way you design buttons in the web is not with a fixed width.
It’s not about sketching html behavior it is more about layouting a new page faster with an existing pattern but different content. The content should fit and have the same padding. Adjusting the padding to the new size can be complicated especially if there is not “magnet” on the same distance to the content on the opposite site.
Just try it yourself:
- create a rectangle
- create a text
- move the text to the center
- change the text
- adjust the width of the rectangle
It is not even showing the distance to the text because the text is inside. Even if it would it would only show the distance to the right side of the text.