Skip to content

Commit

Permalink
Add NestedArtboardLayout hug
Browse files Browse the repository at this point in the history
Add hug overrides for nested artboards.

There is one caveat. Since the Artboard is a special type of layout where children can exist in regular transform space OR inside a layout, in order for nested artboard hug to work, the nested artboard must be in AutoLayout mode (ie has at least 1 relative layout child) and when you set hug on the nested artboard (inside the parent artboard) it will hug to whatever the size of the layout children are. It will not currently hug to components in the Artboard that exist in regular transform space.

https://github.com/user-attachments/assets/eee4568e-c5d3-4987-b852-a52cbd2af563

Diffs=
95cad5c60 Add NestedArtboardLayout hug (#8137)
  • Loading branch information
philter committed Sep 14, 2024
1 parent 3db122f commit e620ff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
edc91a599a7f182007e488b232d64e0166f43139
95cad5c6055750ff6b1c033f903967e6b9c22bb6
2 changes: 1 addition & 1 deletion submodules/rive-runtime

0 comments on commit e620ff4

Please sign in to comment.