How to Left align the circle and the element name in class diagram when MinClassWidth is specified ?

0 votes
asked Jul 10, 2022 in Bug by kasra (1,000 points)
recategorized Jul 18, 2022 by kasra

Hi,

I have this example, with a MinClassWidth specified. I would like to left aligned the circle and the element name.

Is it possible ?

@startuml

left to right direction

hide members

skinparam nodesep 10

skinparam MinClassWidth 200

namespace some.namespace {

    class       Short

    class     SomeLongClassName

}

@enduml

server

Thanks,

Kasra

commented Jul 11, 2022 by The-Lu (64,340 points)

Hello K., and PlantUML team,

This is a defect, see incorrect examples here:

@startuml
skinparam MinClassWidth 200
<style>
class {
  HorizontalAlignment left
}
</style>
class AAAAAA
class "aaaa\nbb\nc"
class C
class AA
@enduml

And:

@startuml
<style>
class {
  HorizontalAlignment left
  MinimumWidth 100
  MaximumWidth 100
}
</style>
class AAAAAA
class "aaaa\nbb\nc"
class C
class AA
@enduml

See pseudo-similar issue here:

Regards.

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.
...