diff --git a/roguelike-starterkit/src/main/scala/roguelikestarterkit/ui/components/group/ComponentGroup.scala b/roguelike-starterkit/src/main/scala/roguelikestarterkit/ui/components/group/ComponentGroup.scala index 5026f610..3cd84175 100644 --- a/roguelike-starterkit/src/main/scala/roguelikestarterkit/ui/components/group/ComponentGroup.scala +++ b/roguelike-starterkit/src/main/scala/roguelikestarterkit/ui/components/group/ComponentGroup.scala @@ -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) }