2015-05-19 14:34 GMT+02:00 Craig Johnson <craig@hivemind.net>:
Hi,
Spec has me tearing my hair out again.
I'm using a composed layout with two columns in it. In the second column I'd like to place some rows which in turn contain columns.
There does not seem to be any way to do this. Everthing that I try only renders one of the two main columns. Guidance would be spreciated.
I don't know for sure, but I had a similar issue and solved it by using a single toplevel container (only one call newRow/newColumn after "SpecLayout composed") ^ SpecLayout composed newRow:[ :top | top newColumn: [ :tcol | tcol newRow:[:trow | trow add: #lblFolder ] height: 30. ]; newColumn: [ :tcol | tcol newRow:[:trow | trow newColumn: [ :tcol2 | tcol2 add: #ddlfolder]; newColumn: [ :tcol2 | tcol2 add: #txtFolder]. ] height: 30. ]. ]
defaultSpec <spec: #default>
^SpecLayout composed newColumn: [ :tcol | tcol newRow:[:trow | trow add: #lblFolder ] height: 30. ];
newColumn: [ :tcol | tcol newRow:[:trow | trow newColumn: [ :tcol2 | tcol2 add: #ddlfolder]; newColumn: [ :tcol2 | tcol2 add: #txtFolder]. ] height: 30. ].