I implemented SpecTableLayout, which uses TableLayout policy. 
Wasn't that hard, beacuse actual layouting *is* done in Morphic.

Interface of SpecTableLayout is somewhat similar to SpecLayout.
All table layout options are supported (see
http://wiki.squeak.org/squeak/2340).
One thing that is not part of TableLayout and was added by me is spacer -
invisible element that is either fixed size or flexible (aka spring).

Most Spec widgets were designed to occupy all available space, and in order
to change that they may be wrapped into single-element table layout. This is
done using #add:wrapped: or #add:withSpec:wrapped with last argument being
block (a similar to #newRow: and #newColumn:).
For example: 


Now I wonder how do I transfer these changes from Monticello to GitHub in
order to make pull request?



--
View this message in context: 
http://forum.world.st/Custom-layout-in-Spec-tp4762142p4762995.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply via email to