[squeak-dev] morph layout

karl ramberg karlramberg at gmail.com
Thu May 26 20:51:37 UTC 2011


| container item |
container := Morph new color: Color yellow; extent: 150 at 150.
container layoutPolicy: TableLayout new;wrapDirection:
#rightToLeft;cellPositioning: #rightCenter;listCentering:#center.
item := Morph new.
container addMorph: item.
container openInHand

Karl

On Thu, May 26, 2011 at 10:45 PM, karl ramberg <karlramberg at gmail.com>wrote:

> | container item |
> container := Morph new color: Color yellow; extent: 150 at 150.
> container layoutPolicy: TableLayout new;wrapDirection: #rightToLeft.
> item := Morph new.
> container addMorph: item.
> container openInHand
>
> Karl
>
> On Thu, May 26, 2011 at 9:01 PM, Chris Muller <ma.chris.m at gmail.com>wrote:
>
>> 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/20110526/4b496bba/attachment.htm


More information about the Squeak-dev mailing list