Aligning packages vertical does not always work correctly

+1 vote
asked Feb 12, 2018 in Bug by Shonof (120 points)
I want to align packages vertical, and I use the code below. Why does it not align vertically? Do I do something wrong? Or is it a bug?

I hope someone can help me

----- ----- ----- ----- -----

@startuml
package p1 {
  class Ac1 {
    - bc1 : Bc1
  }

  interface Ai1 {
      + method() : void
  }

  class Bc1 {
      + method() : void
  }
}

package p2 {
  class Ac2 {
    - bc2 : Bc2
  }

  interface Ai2 {
      + method() : void
  }

  class Bc2 {
      + method() : void
  }
}
p1 -[hidden]- p2
@enduml

1 Answer

0 votes
answered May 26, 2020 by The-Lu (45,860 points)

Hello S.,

From:

PlantUML diagram

If we use:

left to right direction

And change the order of some elements, We obtain:

PlantUML diagram
[Click to see code on PlantUML server]

If that can help,
Regards,
Th.

...