[Q][morphic] LayoutPolicy and LayoutFrame

Martin Drautzburg martin.drautzburg at web.de
Sat Apr 27 20:09:45 UTC 2002


Ned Konz <ned at bike-nomad.com> writes:


> You can just turn on TableLayout and set the layoutInset
> 
> self layoutPolicy: TableLayout new.
> self addMorph: otherMorph.
> self layoutInset: 10 at 10.
> self layoutChanged.

This does not resize the otherMorph. TableLayout just does not do
this, right ?  

> self addMorph: otherMorph
>   fullFrame: (LayoutFrame
>     fractions: (0 at 0 corner: 1 at 1)
>     offsets: (10 at 10 corner: -10 at -10))

That looks nicer. Still: if I want the otherMorph's size to follow its
parent size, do I always need a LayoutFrame ? I sort of don't
understand why TableLayout can live without one and ProportionalLayout
cannot.

BTW: What's the difference between fullFrame: and layoutFrame:





More information about the Squeak-dev mailing list