Skip to main content

I want to make a button grow to the left instead of right.


When I make a button add auto layout, then type the label, I can’t get the button or text to justify right so that my button grows left (or even middle). I found a google material design system button that does this so I know it can do it. I have been trying to figure this out way too long and need help 🤗


I can’t upload a stupid attachment because I am a new user. so lame. 💩

Figma

Hope it helps you get on track


Thanks for this. It helps some but my button only has a word in it no icon. I tried to recreate what you did and it worked… until I removed the icon and then the button kept justifying left.


Hi Morgan, Like @SohrabNiroo said you need to add a constraint to it so it knows how to move. My guess is your button is placed on the canvas (in “empty space”) instead of in a frame. Try placing it inside a frame and set the constraints.


Reply