Skip to main content

Resizing elements with constraints should actually respect the constraints

  • January 28, 2021
  • 5 replies
  • 486 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
  • 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
  • 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
  • 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.


HypoSim
  • New Member
  • February 1, 2024

3 years later, and still not fixed… 🤦


Neal2
  • 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.