MinimumWidth doesnt work when there's a nested object

0 votes
asked Oct 9 in Question / help by Rob

If I use the example below, rectangle A follows the MinimumWidth constraint as expected, while rectangle B adjusts its width to only fit the nested elements. Is this normal behavior or a bug? And how can I make sure both rectangles have the same width without adding extra spaces or components?

@startuml
<style>
rectangle {
  MinimumWidth 400
}
</style>

rectangle A {
}

rectangle B {
  card Hi
}
@enduml

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