Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge nested autolayouts #8

Open
rojcyk opened this issue Aug 24, 2021 · 1 comment
Open

Merge nested autolayouts #8

rojcyk opened this issue Aug 24, 2021 · 1 comment

Comments

@rojcyk
Copy link
Owner

rojcyk commented Aug 24, 2021

Coming from this twitter thread

Example Figma file

Case definition:

  • If you have a frame with auto layout, which has no padding, and ...
  • that frame only has one children which is also a frame with auto layout, and...
  • there are no conflicting properties (spacing, direction or styling)
  • Merge these two auto layouts

Questions:

  • Would it break some designs?
  • Given the frames would need to be non conflicting, would the behavior be predictable? The issue would not get reported if these frames would differ in a single value in any of the properties.
@geiras
Copy link

geiras commented Sep 4, 2021

Would it break some designs?

It might. Only after testing several designs and layer organization you’ll be able to know how well the rules apply.
The plug-in could have a UI to help users preview the effect of the actions and decide to commit the changes or not.

The UI would also allow the users to select which layers to merge and change the selection without having to close and re-open the plug-in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants