WBS - How to set fixed node width for all nodes?

0 votes
asked May 10, 2021 in Question / help by Lora
Is there a fixed node width on/off setting?

I'd use fixed width to use WBS structure to generate an organization chart, and not-fixed width structure for a project WBS for example.

I don't know if and how this is currently possible though.

1 Answer

0 votes
answered May 10, 2021 by The-Lu (64,760 points)
 
Best answer

Hello L.,

Yes, there is, with style, as:

<style>
node {
    MinimumWidth 100
}
</style>

with fixed width:

without:

If that can help,
Regards,
Th.

commented May 10, 2021 by Lora
Thank you.

The solution does help, partially.

In case of a text longer than 100 symbols, the node width increases. Is it possible to have the node width fixed to 100 symbols regardless of the text string length and activate word wrapping for longer texts? (It is OK with me if it is not possible as I needed the functionality for organization charts where the solution you provided does work perfectly. It would be a great option for Activity and BPMN diagrams though, where it may be needed to insert a longer text).
commented May 10, 2021 by The-Lu (64,760 points)
edited May 10, 2021 by The-Lu

Hello L.,

For that, you can add:

    MinimumWidth 100
    MaximumWidth 100

and observe the expected result:

If that can help,
Regards,
Th. 

...