Skip to content

Commit

Permalink
fix(): allow changing fixed layout imperatively
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Apr 23, 2022
1 parent a3b5392 commit 2e35a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shapes/group.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@
return this.prepareBoundingBox(layoutDirective, addedObjects, context);
}
else if (layoutDirective === 'fit-content' || layoutDirective === 'fit-content-lazy'
|| (layoutDirective === 'fixed' && context.type === 'initialization')) {
|| (layoutDirective === 'fixed' && (context.type === 'initialization' || context.type === 'imperative'))) {
return this.prepareBoundingBox(layoutDirective, objects, context);
}
else if (layoutDirective === 'clip-path' && this.clipPath) {
Expand Down

0 comments on commit 2e35a8c

Please sign in to comment.