Open TiberiusFaber opened 1 year ago
With this code we can have the desired result as you can see in the next gif:
Do I understand correctly that you want to use BeginHorizontal/Vertical to layout pins on the edge of the node?
For this case margin sound like good enhancement.
We would need to apply margins to the node Rect in order to display the pins overlapping on the node itself. Outer pins could be drawn by applying horizontal and vertical layout, but these methods don't allow overlap. We have managed to find a workaround to the left most pins by adding padding, that seems to modify the position of the background node rect, but the right pins will always be either inside the node, or fall out of it. To achieve what we need it would be good to have a margin property, that could shrink the node and its borders by a given amount so we would have the desired visual results.