Trouble with layout after grouping

0 votes
asked Sep 30 in Question / help by japearson (120 points)

I have discovered a weird issue, where if you put a grouping around some objects then it ignores or at least de-prioritises the placement of the objects.  This is a minimal set that creates the problem. In the diagram below, input should be on the left and output on the right, but they both end up on the right, with the grouping.

@startuml
rectangle "Group Header" as GH {
    rectangle "Group Rect 1" as AM
    rectangle "Group Rect 2" as RECT2
}
rectangle "Input" as INPT
rectangle "Output" as OUT
rectangle "Common Output" as COUT

INPT -right-> RECT2
RECT2 -right-> OUT
RECT2 -up-> AM
RECT2 -up-> COUT
AM -up-> COUT
@enduml


Commenting out the group fixes it:


@startuml
' rectangle "Group Header" as GH {
    rectangle "Group Rect 1" as AM
    rectangle "Group Rect 2" as RECT2
' }
rectangle "Input" as INPT
rectangle "Output" as OUT
rectangle "Common Output" as COUT

INPT -right-> RECT2
RECT2 -right-> OUT
RECT2 -up-> AM
RECT2 -up-> COUT
AM -up-> COUT
@enduml

Is this fixable? Or is the positioning of elements simply best effort?

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...