[squeak-dev] morph layout
Chris Muller
ma.chris.m at gmail.com
Thu May 26 19:01:43 UTC 2011
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 --------------
A non-text attachment was scrubbed...
Name: Morph.png
Type: image/png
Size: 611 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20110526/613080bf/Morph.png
More information about the Squeak-dev
mailing list
|