Miscellaneous Layout UX Fixes - Fixes issues with edge constraints UX not updating - Fixes issue with absolute/relative toggle not updating - Fixes bug with incorrect point value when moving edge constraints to Left+Right and Top+Bottom - Fix getting into bad state with inherited interpolator - Fix layout animation advance bug - Force layout bounds to be updated when parent changes (fixes a bug where relative layoutcomponents weren't updating because left/top value doesnt change when reparenting) Diffs= 6f29a9c0c Miscellaneous Layout UX Fixes (#7491) Co-authored-by: Philip Chung <philterdesign@gmail.com>
diff --git a/.rive_head b/.rive_head index 8b76ff4..f8f1b58 100644 --- a/.rive_head +++ b/.rive_head
@@ -1 +1 @@ -09ccc9ebbc43c168b96362a02ce8c5a587bdb72b +6f29a9c0c368f94a38e8077343359fdaa97663e6
diff --git a/src/artboard.cpp b/src/artboard.cpp index dbd2f6e..25aa369 100644 --- a/src/artboard.cpp +++ b/src/artboard.cpp
@@ -555,7 +555,7 @@ auto layout = dep->as<LayoutComponent>(); layout->updateLayoutBounds(); if ((dep == this && Super::advance(elapsedSeconds)) || - layout->advance(elapsedSeconds)) + (dep != this && layout->advance(elapsedSeconds))) { didUpdate = true; }
diff --git a/src/layout_component.cpp b/src/layout_component.cpp index 402d0f4..bf32da9 100644 --- a/src/layout_component.cpp +++ b/src/layout_component.cpp
@@ -470,6 +470,7 @@ void LayoutComponent::markLayoutStyleDirty() { + clearInheritedInterpolation(); addDirt(ComponentDirt::LayoutStyle); if (artboard() != this) {