Strange actor spacing when notes at same level on sequence diagram.

0 votes
asked Nov 18 in Bug by anonymous

When there is a long note at same level, there is a huge space created between the actors for no obvious reason. I would like this space to be removed. When notes are not at the same level (without the /), it works correctly.

With the note at the same level, this seems incorrect:

@startuml
create Alice
create Bob
note over Alice: zzzzzz
/note right Bob: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@enduml

http://www.plantuml.com/plantuml/png/SoWkIImgAStDuKekIaqiILLmpCbCJeLndFAJkFBoWOpyijGYY9ILGXKOSEc39OeoqpDAGEgi52he2RWSKlDIWCu60000

Without the note at the same level everything is correct:

@startuml
create Alice
create Bob
note over Alice: zzzzzz
note right Bob: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@enduml

http://www.plantuml.com/plantuml/png/SoWkIImgAStDuKekIaqiILLmpCbCJeLndFAJkFBoWOpyijGYY9ILGXKOGCIBCjCpIa3Ah1Ggw0cu75BpKe2k1W00

1 Answer

0 votes
answered Nov 20 by plantuml (235,420 points)

Thanks for the feedback.

You should enable "teoz" layout engine to better handle this case. So you have to add "!pragma teoz true" to your diagram.

See this example.

Someday, this will be enabled by default...

Hope this helps!

commented 4 days ago by anonymous
Thanks a lot! This really help.
...