Skip to content

Commit d62035e

Browse files
philterphilter
andcommitted
Call updateLayoutBounds on NestedArtboardLayout
I think this is the right fix here. Since the calls to updateLayoutBounds are now passed down through layout children rather than on advance, we also needed to call updateLayoutBounds on NestedArtboardLayout, since those "provide" their layout nodes to their parent artboards layout tree (thus updateLayoutBounds doesn't get called during their own Artboard's advance). Diffs= 6931974fe3 Call updateLayoutBounds on NestedArtboardLayout (#8398) c7cd1c8c74 editor: support vector n-slicing in runtime (#8395) b3534f1f8f Nnnn text alignment and fit (#8385) 52963ca423 hierarchical updates to layout (#8386) 96d45f6824 Do not load files with invalid paint mutators. (#8366) 76f79a22e2 testing animation smoothing (#8363) 86f2d78a90 NestedArtboardLayout marks its parent artboard layoutNodeDirty (#8383) 2516daf1e0 Nnnn system data enums (#8380) 54629ea542 LayoutComponent clip defaults to false. (#8368) 0c8fa5c313 Add AdvancingComponent & animate flag to advance() (#8362) Co-authored-by: Philip Chung <philterdesign@gmail.com>
1 parent 9abe92b commit d62035e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.rive_head

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
80da365913302db2a303def22846d02b35a4eab8
1+
6931974fe3eb4a5dcda546cafe2ed50e9da2c939

lib/src/rive_core/nested_artboard.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ abstract class MountedArtboard {
6262
void artboardHeightOverride(double height, int heightUnitValue, bool isRow);
6363
void artboardWidthIntrinsicallySizeOverride(bool intrinsic);
6464
void artboardHeightIntrinsicallySizeOverride(bool intrinsic);
65+
void updateLayoutBounds(bool animate);
6566
void dispose();
6667
void setDataContextFromInstance(ViewModelInstance viewModelInstance,
6768
DataContext? dataContextValue, bool isRoot);

lib/src/runtime_mounted_artboard.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ class RuntimeMountedArtboard extends MountedArtboard {
9999
@override
100100
void artboardHeightIntrinsicallySizeOverride(bool intrinsic) {}
101101

102+
@override
103+
void updateLayoutBounds(bool animate) {}
104+
102105
@override
103106
double get originalArtboardWidth => originalArtboardInstanceSize.width;
104107

0 commit comments

Comments
 (0)