Box size should not be changed

I have a Box class inherited from GoSubGraphBase. There is a port object located on the top-left corner of the box. The nodes added into box have links connected to the box port.

Problem: The box size keeps changing (bigger) when the box is moved.

If the nodes inside box do not have links connected to the box port. The box size is not changed when the box is moved.

Huan

Are you using the BoxArea class that is in Demo1? If so, you can change its ComputeBorder method to ignore links.

Perfect! It works as expected.Tongue

I have modified the ComputeBorder method in my class as you directed and overridden the DoMove method which calls ComputeBorder.

Walter, thank you for your quick response.