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

Smart layout #276

Open
1 task
Tracked by #1
milg15 opened this issue Sep 7, 2021 · 0 comments
Open
1 task
Tracked by #1

Smart layout #276

milg15 opened this issue Sep 7, 2021 · 0 comments
Assignees

Comments

@milg15
Copy link
Contributor

milg15 commented Sep 7, 2021

  • TODO: DESCRIPTION

We should handle smart layout on symbols that overflow.

Smart Layout works on symbols where the Layout property it's not None. The user can choose from the following layout properties :

Vertical:

  • Top to Bottom Vertical
  • Bottom to Top Vertical
  • From Middle Vertical

Horizontal:

  • Left to Right Horizontal
  • Right to Left Horizontal
  • From Center Vertical

The Symbol Source will have a new Icon on the Layer List when a new layout property is selected.

image

Cases

Override Text

When you apply Smart Layout properties to a Symbol with text layers, you’ll need to make sure they’re set to either auto height (for vertical layouts) or auto width (for horizontal layouts).

[email protected]

Add shrink instances button in overrides panel inspector.
https://user-images.githubusercontent.com/16924758/132747201-cd235550-22ee-40f1-b3e2-c45316b45a53.mp4

Minimum Smart Layout Dimensions

Allow users to select the minimum width or height the symbol must keep.

[email protected]

Reference:

@milg15 milg15 mentioned this issue Sep 7, 2021
67 tasks
@milg15 milg15 linked a pull request Sep 8, 2021 that will close this issue
@milg15 milg15 self-assigned this Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant