Skip to main content
Solved

Backwards Autolayout and issues with prototypes


Elizabeth9

Has anyone experienced a weird bug where the autolayout align commands appear backwards to the expected result? I.e when I try to left align an autolayout it right aligns it instead. Also having issues with prototype previews within the same file. Wondering if it is a corrupt file or if others are having similar issues.

Best answer by David

@Elizabeth9 are you sure that the Rotation value is set to 0? It’s easy to recreate your scenario when the auto layout has a mirrored rotation set to it? You can still place objects in with the correct orientation, even when a parent is rotated.

Check my demo image here: https://uploadpie.com/KH2uVE

View original

11 replies

tank666
  • 4858 replies
  • July 24, 2023

Elizabeth9
  • Author
  • 3 replies
  • July 24, 2023

They are not. It happens even when creating a net-new autolayout within this file.


tank666
  • 4858 replies
  • July 24, 2023

Could you share a link to this file?


Elizabeth9
  • Author
  • 3 replies
  • July 24, 2023

Unfortunately it is for work and the file contains sensitive info that can’t be shared.


Josh
  • Former Community Manager
  • 1019 replies
  • July 24, 2023

Hey @Elizabeth9 are you able to reproduce this in a separate file by chance?


David
  • 9 replies
  • Answer
  • July 24, 2023

@Elizabeth9 are you sure that the Rotation value is set to 0? It’s easy to recreate your scenario when the auto layout has a mirrored rotation set to it? You can still place objects in with the correct orientation, even when a parent is rotated.

Check my demo image here: https://uploadpie.com/KH2uVE


Elizabeth9
  • Author
  • 3 replies
  • July 25, 2023

You are correct. This was causing the issue with the prototype preview as well. Thank you!


Josh
  • Former Community Manager
  • 1019 replies
  • July 25, 2023

Thanks @David for jumping in to help! @Elizabeth9 glad this was an easy fix for you! 🙂


jasha.aitchison

I have the same issue but none of the parents are rotated 🤨

It seems to happen randomly and only in the past few weeks.


Nellya
  • Power Member
  • 420 replies
  • October 4, 2024

Probably it’s not rotated, but flipped


jasha.aitchison

It happens to new autolayouts I create and I cant imagine I am unknowingly flipping them all the time all of a sudden. Any idea how that might be happening?


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