links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Last updated at 5:51 pm UTC on 30 August 2017
The AlignmentMorph is a subclass of RectangleMorph. It used to be the only Morph type with methods to control the layout of its submorphs.

All morphs now support layoutPolicy which supports TableLayout.

As AlignmentMorph is a submorph of Morph this applies to it as well.

Though that means that most of the job of AlignmentMorph is done by the class Morph it is kept around with a few configurationmethods for compability and convenience reasons.

Examples of these methods are newRow and newColumn.

AlignmentMorph examples

See also Example - aMorph addMorph: anotherMorph for the layout policy applied to a RectangleMorph.

How to lay out submorphs.

See AlignmentMorph changes in 2004