Sequence: Text Alignment in participant in v1.2026.8

0 votes
asked 15 hours ago in Question / help by Esperito (260 points)
edited 6 hours ago by Esperito

In PlantUML v1.2026.3 - v1.2026.8, specifying a minimum width for sequence diagram participant boxes causes the internal text to align left instead of being centered. Explicit layout alignments like HorizontalAlignment center are ignored.

Steps to Reproduce:
The issue occurs whenever the participant box size is expanded programmatically using either <style> or skinparam:

@startuml
<style>
sequenceDiagram {
participant {
' This causes the text inside the participant box to align LEFT
MinimumWidth 100
HorizontalAlignment center
}
}
</style>

' Note: The same bug occurs when using legacy skinparam in recent versions:
' skinparam MinClassWidth 100

participant "A" as A
participant "LongNameParticipant" as B

A -> B : Message
@enduml

If the text length is shorter than the defined minimum width (e.g., participant "A"), the text is strictly locked to the left edge of the box.

Additional Context
• In v1.2025.10, setting the minimum width via skinparam (e.g., skinparam { sequence { Participant { MinimumWidth 100 } } } or MinClassWidth) successfully maintained text centering.

• In v1.2026.2, setting the minimum width via style (e.g., <style> sequenceDiagram { participant { MinimumWidth 100 } } </style> or MinClassWidth) successfully maintained text centering.

1 Answer

0 votes
answered 40 minutes ago by plantuml (298,900 points)
Thanks for the report: this should be fixed in last snapshot
...