I’m having an issue with a node in my application based largely on the RecordNode example provided. I can recreate the problem by modifying the example and adding the following two lines to the RecordNode constructor:
ListGroup.TopLeftMargin = new SizeF(0, 0); ListGroup.BottomRightMargin = new SizeF(0, 0);
If I then:
- Run the Demo1 example
- Create a new document
- Drag 2 RecordNodes into the document
- Create a link between two RecordItem objects
- Position the two RecordNodes side by side with 200 pixels between them
- Resize the left RecordNode by dragging the right side
It appears that the bounds for the RecordItem objects get calculated incorrectly when the left RecordNode is resized, but get calculated properly if either RecordNode is moved.
Is this the expected behaviour with a margins of (0, 0)? What can I do to recreate the behavior when the margins are the default of (2, 2)?