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.

Categories

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?
in Help by (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.

by [yWorks] (161k 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.

Has this autoResize property been removed in recent versions of yEd? I cannot find it.
yEd has never supported turning off automatic resizing of group nodes. This is only possible in the library upon which yEd is built.
@MadEmporerYuri: The autosize property autoResize="false" is not a property of yEd, but of the graphml. Example:
...
<y:Shape type="rectangle"/>
    <y:State closed="false" closedHeight="100.0" closedWidth="100.0" innerGraphDisplayEnabled="false" autoResize="false"/>
    ...
</y:GroupNode>

But as thomas made clear:
The autoResize attribute of group nodes determines the resizing behavior of group nodes while interactively moving their child nodes.
Legal Disclosure | Privacy Policy
...