Problem with grouping when "skinparam ParticipantPadding" is used to set the width

0 votes
asked Oct 4, 2019 in Bug by Sri
Hi,

       There seems to be a spacing issue when I use groups along with the skinparam "ParticipantPadding". Please let me know if we have a workaroud.

Ex UML code:

@startuml
skinparam ParticipantPadding 400
skinparam SequenceMessageAlign first
actor Tester
||45||
||0||
group #ffdae9 Deleted
Tester -[#red]> ECU : 0x5C 0x00
||1||
ECU -[#0000FF]> Tester : 0x5C 0x0F 0x22 0x0...
||1||
Tester -[#red]> ECU : 0x5C 0x00
||0||
ECU -[#0000FF]> Tester : 0x5C 0x0F 0x22 0x0...
||0||
Tester -[#red]> ECU : 0x5C 0x00
||5||
ECU -[#0000FF]> Tester : 0x5C 0x0F 0x22 0x0...
||0||
Tester -[#red]> ECU : 0x5C 0x00
||0||
ECU -[#0000FF]> Tester : 0x5C 0x0F 0x22 0x0...
end
commented Oct 5, 2019 by albert (2,640 points)
I took your example and reduced the padding from 400 to 100 just for display purposes in this comment. I get:

http://www.plantuml.com/plantuml/png/jP51IyGm48Nl-HK3FLkcnHxq89LgRq91FOc7ePc6O9lM90KF-V7EieNTsow5pU4BFBxt2AGEaNnSfr657-iMyZH19udjxK8kTgIrTGOAn3FXdNzNTZs_SGXa-7cqni5WVOYA-ZXx-E0GsQkKxgkKv4AXyVEwG3OCclW1NdZao5eTJRZxoZphxoTuRJxX4V2lQWI8qYsaUqX5GJbjAzRMEecje2m5cEVvLheyZNkcyQhfQjVqhLxDJgjQ8F_y3m00

There is a lot of white on the right hand side. Is this the space you mean?

Some observations:

When removing the "group" and "end" the resulting image looks OK.

When adding a transition like ECU -> ECU1 the image looks worse, the first column / lane is much smaller than the second (with and without the grou).

1 Answer

0 votes
answered Oct 5, 2019 by anonymous
Hi Albert,

                  Thanks for the reply. The objective here is to make the “group” colour not go far to the right.

 The problem with reducing/ removing padding   is that we have to compromise on readability(Here I used padding as a proxy to increase the width of the diagram).  So, I am looking for an alternative to padding with which ”groups” work as expected.

Sri
...