Skip to main content

Components should respect their alignment constraints when changing size even without autolayout

  • April 28, 2022
  • 1 reply
  • 1076 views

Svarry

See video of the issue here:

I have a component “Text” with autolayout enabled at first. Its instance is set to position center, so when I change parent’s size, it automatically grows in both directions. All good so far and working as expected, if I center-align a component I expect it to apply to all changes from component’s size to frame’s resizing.

However, once I remove the autolayout on the parent, and change its size, the instance now grows to the right ignoring the previously described behaviour. Why the inconsistency?

I can’t auto-layout every component, and it’s really time consuming to go through every usages of the instance and re-align it into middle of its parent when its size has changed. Or am I missing something?

This topic has been closed for comments

1 reply

  • 0 replies
  • July 27, 2022

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.


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