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.

autoResize="false" ignored?

0 votes
I generated a graphml file with some topmost group nodes which should not be automatically resizes by yEd using Layout->Hierarchical. Therefore I added the property autoResize="false" to those group nodes.

While the layout looks very nice after automatic layout, the size of the topmost group nodes was resized and the position changed too.

How is it possible to leave the position and size of the topmost group node level untouched by the automatic hierarchical layout?
asked Oct 9 in Help by Ulrich (140 points)

1 Answer

0 votes

The autoResize attribute of group nodes determines the resizing behavior of group nodes while interactively moving their child nodes.

It is not possible to prevent the hierarchic layout algorithm from resizing group nodes.

answered Oct 9 by thomas.behr [yWorks] (127,200 points)
Thank you very much for your quick answer. Is there any other possibility to fix topmost group nodes? There are a lot of business cases where it is useful that topmost elements which apears in a set of similiar diagrams are always positioned at a fix position and have a fix size. In my case I render network architecture diagrams with yed and it would be very useful if the topmost net segments (modeled as group nodes) would always have the same size and position and order of appearance. Without such feature every network diagram has a random rendering depending on the number of child nodes, edges and directions of edges.

Unfortunately, this is not possible in yEd.

However, the yFiles diagramming library (upon which yEd is built) does offer the possibility to enforce specific orderings for (normal) nodes and minimum sizes for group nodes.
So, if you are a software developer, it might be worth your while to take a look at yFiles.

Legal Disclosure | Privacy Policy