Hello all,
I'm having trouble to apply proper layout in popUpView in Roassal. The problem can be seen with the output of the following scripts: both manipulating same entities, the first one drawing entities without popUp (and producing correct layout), the second one is using popUpView (problem with the produced layout):
myView := ROMondrianViewBuilder new. myView node: 'test' forIt: [ myView shape rectangle. myView node: #innerNode forIt: [ myView shape rectangle. myView node: #first forIt: [ myView nodes: #(1 2 3) ]. myView shape rectangle. myView node: #second forIt: [ myView nodes: #(1 2 3) ]. myView shape rectangle. myView node: #third forIt: [ myView nodes: #(1 2 3) ]. myView verticalLineLayout center ]. myView gridLayout ]. myView open
========================================================== view := ROMondrianViewBuilder new. view shape label. view interaction popupView: [ :entity :myView | myView node: 'test' forIt: [ myView shape rectangle. myView node: #innerNode forIt: [ myView shape rectangle. myView node: #first forIt: [ myView nodes: #(1 2 3) ]. myView shape rectangle. myView node: #second forIt: [ myView nodes: #(1 2 3) ]. myView shape rectangle. myView node: #third forIt: [ myView nodes: #(1 2 3) ]. myView verticalLineLayout center ]. myView gridLayout ]. ]. view nodes: #(0 9 8). view open
Could you please see if there is a bug or I am doing it wrong?
tx, Usman