MinimumWidth doesnt work when there's a nested object

0 votes
asked Oct 9, 2023 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

1 Answer

0 votes
answered Nov 17 by The-Lu (74,900 points)

Hello R.,

FYI that is now fixed and implemented on v1.2024.8:

- Thanks PlantUML team for your work.

Ref.:

Regards,
Th.

...