Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.


How can I make class nodes scale automatically?

0 votes

I'm trying to create a class diagram where each class will have a different number of attributes and methods. I'd like to scale all class nodes to automatically fit the size needed by the attributes and methods. I've already tried File -> Preferences -> dynamically... but it doesn't seem to work.

How do I make them scale automatically?
in Help by

1 Answer

+1 vote

File > Preferences > Editor > Dynamically Adjust... (if enabled) applies to nodes as you type in their label text. To adjust the size of a set of nodes in one go, Tools > Fit Node To Label would be the right tool.
However, this tool only takes into account the first label of a node, i.e. it cannot find the proper size for class nodes that have additional labels for attributes and/or methods.


by [yWorks] (23.7k points)
As of yEd 3.17.1, "Fit Node to Label" takes constraint, stereotype, attributes, and methods labels of UML class nodes into account as well.
Legal Disclosure | Privacy Policy