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

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.

in Help by (390 points)
edited by

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.

by [yWorks] (161k points)
edited by
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.
Legal Disclosure | Privacy Policy
...