[squeak-dev] morph layout

Denis Kudriashov dionisiydk at gmail.com
Thu May 26 20:23:12 UTC 2011


try

container changeTableLayout

2011/5/26 Chris Muller <ma.chris.m at gmail.com>

> I seem to be going crazy because I've done lots of Morphic programming
> in the past.  But, for the life of me, I cannot seem to get layout to
> work the way I remember it always working.  I want rightCenter but
> can't get anything but topLeft.
>
> | container item |
> container := Morph new color: Color yellow; extent: 150 at 150;
> cellPositioning: #rightCenter.
> item := Morph new.
> item cellPositioning: #rightCenter.
> container addMorph: item.
> container openInHand
>
> I always thought cellPositioning was set on the _container_, but the
> comment says on the "receiver", so even when I set it on both it is
> still placed at the top left.
>
> What am I missing here?
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20110527/5924d564/attachment.htm


More information about the Squeak-dev mailing list