skinparam defaultTextAlignment center does not work on elseif boxes

0 votes
asked Dec 12, 2018 in Bug by Duncan

When using skinparam defaultTextAlignment center in an activity diagram (beta), it correctly centers text on if and else boxes, but not elseif boxes:


skinparam defaultTextAlignment center


if (condition A \n or \n condition E) then (true)

:do something;

elseif (condition B)

:do something else;


if (condition C \n or \n condition F) then (true)

:do something again;

else (false)

:do another thing;




commented Dec 13, 2018 by mgrol (2,850 points)

I can confirm this.

The text alignment is correct when changing the elseif to else. Basically, the text alignment of the if box is wrong if the complete statement contains an elseif condition.

This is another example:


commented Dec 13, 2018 by albert (3,120 points)
Looks to me that in the example an `endif` is missing (doesn't solve the problem though).

1 Answer

0 votes
answered Dec 15, 2018 by plantuml (257,900 points)
Thanks for the report : this has been solved in last beta

(and on the online server too)