I’ve got a few subclasses of things, but am having a basic problem which is this:
My GoTextNode has a Port. The size of which is set to the size of the Node (basically making the whole thing draggable). When the GoTextNode.Bounds change, the Port dimensions need to resize to match.
However, what I’m finding is I get a StackOverflow. It appears that changing the Bounds on the Port, Changes the Bounds on the node, which changes the Bounds on the Port again… I’ve got autoresizes/autorescale etc all turned off, and can’t figure out why this is happening.
Can anyone make any suggestions on how to avoid this recursion?
Would you be able to email me some examples over? I’m using the 2.6.1 version of Express and I don’t believe there are any example implementations of LayoutChildren in them?
You could download the full GoDiagram kit and use the full list of samples as a reference… just realize there are going to be things there you can’t use in Express.