Blazor-Diagrams / Blazor.Diagrams

A fully customizable and extensible all-purpose diagrams library for Blazor
https://blazor-diagrams.zhaytam.com
MIT License
919 stars 176 forks source link

Automatically adjust node width and height to the width of the contents #304

Closed mueller-marcel closed 1 year ago

mueller-marcel commented 1 year ago

Hello there,

I am missing the feature that allows me to set the height and width of a node dynamically. I have to display words in pascal case in the nodes. Some are short, other really long and its hard for me to determine the width of a node in order to not get an overflow, which looks like this.

image

Would it be possible to implement a feature that calculates the width according to the content?

zHaytam commented 1 year ago

Hello,

That would be done using HTML/CSS. Create a custom node and use for example word-break: break-all; or any wrap properties in CSS