Make group take all horizontal space?

0 votes
asked Apr 24, 2017 in Wanted features by costateixeira (500 points)
Hi

For sequence diagram:

When I make the group, it takes the horizontal space of the actors that are involved.

Is there a way to disable this and make the group extend over the entire width of the diagram, so that all groups are aligned horizontally?

 

Thank you for any advice

2 Answers

0 votes
answered Apr 25, 2017 by plantuml (297,300 points)
Hello,

Could you post a short and simple example that shows the issue ?

Thanks!
commented Apr 25, 2017 by costateixeira (500 points)
Hi
the example below: group 1 does not include Carl, and group 2 does not included Bob, so the groups are automatically sized and are not aligned (the left sides and right sides).

Can we override this?

Thank you

@startuml
group 1
Bob -> Alice : hello
end
group 2
Carl -> Alice: Hi
end
@enduml
commented Apr 25, 2017 by plantuml (297,300 points)
No, currently you cannot change this behavior.
We do not expect to change this right now.
Maybe in some future (> 6 months)
Sorry about that!
commented Feb 8, 2025 by LemonLion
Just wondering is there any progress with this feature or a workaround?  Unfortunately the diagrams can quickly get a bit ugly without horizontal alignment of groups.
commented Feb 9, 2025 by The-Lu (86,860 points)

Hello L, and all,

From:

Here is a workaround, adding hidden arrows, as:

@startuml
group 1
Bob -> Alice : hello
Carl <[hidden]- Carl
end
group 2
Carl -> Alice: Hi
Bob -[hidden]> Bob
end
@enduml

Enjoy,
Regards,
Th.

commented Feb 11, 2025 by LemonLion
Hi The-Lu,

Thanks for your reply.  Unfortunately the workaround doesn't really work for my use case.  I've commented on the issue in the repo with more details.

Cheers,

Aryeh
0 votes
answered Dec 9, 2025 by The-Lu (86,860 points)

Hello C.,

For that, starting with the next version (1.2025.11), you will be able to use `partition`, as:

@startuml
!pragma teoz
partition 1
Bob -> Alice : hello
end
partition 2
Carl -> Alice: Hi
end
@enduml

Enjoy,
Regards,
Th.

...