Hi,
Alex, was trying a similar example in the easel, and what i found is that the problem of
the "root interaction" is not in Mondrian but in Glamour.
Tudor, could you please take a look at this? (the first inspect does not work)
in the easel -> i can see the inspect of the root (first line).
view root interaction action: #inspect.
(1 to: 10) do: [:n |
view shape rectangle
borderColor:[ :each| Color blue ].
view interaction action: #inspect.
view node: n forIt: [
view interaction action: #inspect.
view node: (n * 2).
view shape rectangle withoutBorder.
view interaction action: #inspect.
view node: n forIt: [
view shape rectangle
borderColor:[ :each| Color green ].
view interaction action: #inspect.
view node: (n * 3) ].
view verticalLineLayout.
] ]
but if I draw this inside glamour can't
| browser |
browser := GLMTabulator withStatusbar.
browser column: #one.
browser showOn: #one; using: [
browser mondrian
painting: [:view :number|
view root interaction action: #inspect.
(1 to: number) do: [:n |
view shape rectangle
borderColor:[ :each| Color blue ].
view interaction action: #inspect.
view node: n forIt: [
view interaction action: #inspect.
view node: (n * 2).
view shape rectangle withoutBorder.
view interaction action: #inspect.
view node: n forIt: [
view shape rectangle
borderColor:[ :each| Color green ].
view interaction action: #inspect.
view node: (n * 3) ].
view verticalLineLayout.
] ]
] ].
browser openOn: 10
regards,
Veronica