Justification

Using Justification

There are several aspects to view justification. You need to determine whether you are going to justify relative to a parent or a sibling, and you have to decide on which side(s) of that view you are going to base the justification (top, left, bottom, or right). After setting the justification to your liking, you then need to modify the viewBounds slot so that the size and location are correct.


Caution:When you are using justification, NTK does not always display the location of views correctly (see page 42). If you see unexpected results within NTK, build and download your package to see how it looks on the Newton. The Newton is the final arbiter of correct display; NTK provides an approximation to the correct display and is not always correct.


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

Last modified: 1 DEC 1996