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.

Bug with dynamic node resize ?

0 votes

my setting is:

File > Preferences... > Editor

  • Create Node on Background Click hecked
  • Edit Label on Create Node Checked
  • Dynamically Ajust Node Size to Label Size Checked

WHen I create a node, it goes in edition and I type the  node's label, when Enter, the node resizes dynamically in width and height. So far, so good.

When I select an existing node and edit the label (F2), when Enter, the node resizes dynamically in width but not in height.

Did I made a mistake or is it a bug ?

Update: not always!  Sometimes it works, sometimes it don't. on same session, same file.

asked Jul 2, 2017 in Help by Patrice (380 points)
edited Jul 2, 2017 by Patrice

1 Answer

0 votes

"Dynamically Adjust Node Size to Label Size" is meant to adjust only those nodes whose default label is inside the node. For this reason, "Dynamically Adjust Node Size to Label Size" tries to determine if the default label of a node is meant to be inside or outside of the node from the label's position property. However, the default label position ("Position" set to "Smart Free: Anywhere") may be used to place labels inside as well as outside of a node. In this case, "Dynamically Adjust Node Size to Label Size" uses a heuristic to determine the intended position - and it being a heuristic it does not recognize all "internal" positions.

Long story short, if you want "Dynamically Adjust Node Size to Label Size" to recognize internal positions without fail, set the "Placement" property of your labels to one of the available "Internal" positions.

answered Jul 3, 2017 by thomas.behr [yWorks] (122,590 points)
edited Aug 28, 2017 by thomas.behr
As of yEd 3.17.1, the logic for recognizing internal positions when using placement "Smart Free: Anywhere" has been improved. Using one of the "Internal" positions is still the safest way, though.
Imprint | Privacy Policy