Skip to main content

Resizing elements with constraints should actually respect the constraints

  • January 28, 2021
  • 5 replies
  • 465 views

Adam

When you resize an element with right constraints inside a parent layer, the element expands towards the right and off the page (layer). I can’t think of a scenario where I would want this behavior. When I set a constraint, I don’t want to readjust the spacing from where it was originally while editing.

Can anyone think of an example where this would not be desired behavior?

5 replies

Gleb
  • Power Member
  • 4706 replies
  • January 28, 2021

Yep, that would be nice. Auto layout layers already do that when you resize something inside of them. Why not regular layers?


Phil_Larsen
  • Active Member
  • 130 replies
  • July 29, 2021

Yes! I have been spending a lot of time moving an element that is in a normal frame despite it being constrained to the center, or right. Seems to always resize as if it were left aligned.


Ashley
  • New Participant
  • 4 replies
  • August 15, 2023

Use-case: I’m building an icon with a badge. The badge is aligned right/bottom over the icon. As I adjust the size of the badge using the width and height values it should stay right/bottom aligned.


  • 1 reply
  • February 1, 2024

3 years later, and still not fixed… 🤦


Neal2
  • 10 replies
  • June 7, 2024

No matter how much I changed the anchors it didn’t work, and I kept thinking I was doing it wrong, I suggest constraints renamed confused.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings