Problems with aligning Morphs

Ned Konz ned at bike-nomad.com
Tue Sep 18 23:35:49 UTC 2001


On Tuesday 18 September 2001 03:53 pm, Tim Rowledge wrote:
> Ned Konz <ned at bike-nomad.com> is widely believed to have written:
> > > b) the textmorph seems to ignore resizing of the window, instead of
> > > shrinking/growing as expected. I've tried a few variations on the
> > > layout frame parameters. No difference I can uncover. If you put the
> > > textmorph in an alignment morh, the frame appears ok and grows/shrinks,
> > > but the text morph will overrun the frame as soon as you make it too
> > > small.
> >
> > Turn off autoFit on the TextMorph (tm autoFit: false).
>
> Makes no difference at all on my image (update 4282 level). I just tried
> using addMorphBack: instead of a simple addMorph:, just in case - no
> difference.

This works for me in update 4332 land:

sys _ SystemWindow labelled: 'foo'.
sys paneColor: Color blue.

tm _ TextMorph new contents: 'path to hell' asText allBold.

sys addMorph: tm
fullFrame: (LayoutFrame fractions: (0 at 0 corner: 0.3 at 0) offsets: (0 at 20
corner: 0 @100)).

tm autoFit: false.
tm textColor: Color black.

sys openInWorld.

-- 
Ned Konz
currently: Stanwood, WA
email:     ned at bike-nomad.com
homepage:  http://bike-nomad.com




More information about the Squeak-dev mailing list