Skip to content

Commit

Permalink
CG updateModel correctly offsets the context bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
davesmith00000 committed Jun 8, 2024
1 parent 58f5faa commit f2fcdf2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ object ComponentGroup:
model.components
.map { c =>
c.component
.updateModel(context.copy(bounds = context.bounds), c.model)(e)
.updateModel(
context.copy(bounds = context.bounds.moveBy(c.offset)),
c.model
)(e)
.map { updated =>
c.copy(model = updated)
}
Expand Down

0 comments on commit f2fcdf2

Please sign in to comment.