Skip to content

Commit

Permalink
Make layout position type and scale type keyable
Browse files Browse the repository at this point in the history
In order to support a request from Duo (this is actually something probably most users will want), we make layout position type (relative or absolute) keyable. By making a child layout absolute, it can break out of its parent's flexbox style layout system, which removes the "double gap" issue and also provides more freedom for the absolute layout to be repositioned, etc.

While doing this, it also became apparent that scale type (fixed, fill and hug) also needs to be keyable. This is because when switching from relative positioning with a fill scale type to absolute, we want to maintain sizing, so we would need to switch from auto (fill) to point (fixed) unit size. Again, this will provide additional flexibility for users to switch between the scale types in other scenarios.

Diffs=
638ee6434e Make layout position type and scale type keyable (#8316)
  • Loading branch information
philter committed Oct 14, 2024
1 parent 5ccf358 commit 6f041ca
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 @@
0f805654cfd333d978a98a4375a6d99d0d5c8107
638ee6434ebac8f230de6ea69bc70b907b3ca8ce

0 comments on commit 6f041ca

Please sign in to comment.