Comment #7 on issue 574 by tudor.gi...(a)gmail.com: Nodes with complex shapes
do not position the children nodes with complex shapes properly
http://code.google.com/p/moose-technology/issues/detail?id=574
Good improvement. It looks good when you have two levels of nodes.
However, when you add a third level, it gets confused:
| shape builder |
builder := MOFormsBuilder new.
builder column; fill; row; fill; row; fill; row; fill.
builder x:1 y:1 add: (MORectangleShape new text: #printString).
builder x:1 y:2 add: (MORectangleShape new).
builder x:1 y:2 add: (MOChildrenShape new) .
shape := builder asShape.
view nodeShape: shape.
view nodes: (10 to: 30 by: 10) forEach: [:y |
view nodeShape: shape.
view nodes: (1 to: 5) forEach: [:each |
view nodes: (1 to: each ) forEach: [:x |
view nodes: (1 to: x).
view verticalLineLayout ].
view verticalLineLayout ].
view verticalLineLayout]
It looks like the second level node paints the children twice.
Now, try to drag and drop any of the 10, 20 or 30 nodes and you will see
that all of these nodes try to paint a second batch of children (although
the location of where they get painted varies).