Skip to content

Commit 025afd9

Browse files
author
philter
committed
fix: Layout ScaleType keying with percent units bug (#12388) 1f4b65d3dd
There is a bug when keying width or height scale type, in particular if one of those values is set to a percent unit. Keying a scale type would cause the other axis to incorrectly reset its unit value. Really we shouldnt being changing the unit value (its not keyable), and we should just let it store either px or % and persist that value so it gets passed down to the layout engine only when the scale type is set to fixed. When set to fill or hug, we always pass down auto. We determine which at the time syncStyle is called. Also this PR hides the "Apply transform" toggle for strokes applied to layouts. Since apply transform relates to the scale of objects, it isnt relevant to layouts because they don't scale, they only resize their width/height and would result in visual bugs (#12351).
1 parent 353db3c commit 025afd9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.rive_head

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9354e62e9ac30836182cd8c5aafb4289fd1e7810
1+
1f4b65d3dd0dc865b5a145f664ae284ebe45aa39

0 commit comments

Comments
 (0)