Parent Justification

Top and Bottom Justification

For parentRelativeTop justification, the top and bottom fields of viewBounds are measured from the top of the parent (see FIGURE 5.15). For parentRelativeBottom justification, they are measured from the bottom of the parent (see FIGURE 5.16) and thus are usually negative.

FIGURE 5.15 : parentRelativeTop justification.


FIGURE 5.16 : parentRelativeBottom justification.


You can use any combination of vertical and horizontal justification on a view--they are independent of each other. FIGURE 5.17 shows an example of four child views, each with different combinations of parentRelativeTop, parentRelativeBottom, parentRelativeLeft, and parentRelativeRight.

FIGURE 5.17 : Examples of parentRelativeLeft, parentRelativeRight, parentRelativeTop, and parentRelativeBottom justifications.


An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996