wrapCentering: #center;
instead of
cellPositioning:#center;

I don't understand anything of this Morphic Layout stuff.
This is just what have seen in MenuMorph code


Nicolai



2014/1/7 Sean P. DeNigris <sean@clipperadams.com>
labelMorph := Morph new.

"labelCenteringMorph := Morph new
� � � � beTransparent;
� � � � hResizing: #spaceFill;
� � � � changeTableLayout;
� � � � listDirection: #leftToRight;
� � � � listCentering: #center;
� � � � addMorph: labelMorph;
� � � � yourself."

Morph new
� � � � color: Color white;
� � � � changeTableLayout;
� � � � listCentering: #center;
" � � � cellPositioning: #center;"
� � � � extent: 500@500;
� � � � addMorph: labelMorph;
� � � � openInWorld.

How do I get labelMorph centered on the width of its parent without
labelCenteringMorph?



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Submorph-centering-tp4734988.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.