Morph help
hjh-sqlist at lexdb.net
hjh-sqlist at lexdb.net
Fri Dec 24 10:00:39 UTC 2004
Quoting Michael Latta <lattam at mac.com>:
> I am seeing odd behavior. I have a morph (subclass of NCBasicShape
> from Connectors) with no layout policy, and a size set. When I drop a
> morph into it, the morph resizes to just enclose the submorph. So a
> morph that is 100 at 200 receives a morph at 20 at 100 that is 10 at 10 and is
> resized to 30 at 110. Without a layout policy should it not retain its
> size?
>
> I have not yet found what method is being used to change the size of
> the morph. It is not bounds:, extent: nor privateBounds: as far as I
> can tell so far.
>
> Michael
>
>
>
Trygve's #traceRM:levels: tool (the third in the BabySRE package) can help you
to more easily find out about these things.
Basically you put in commands like
self doOnlyOnce: [self traceRM: self levels: 50]
into the code to analyze.
See his paper for more details.
Even without #traceRM:levels: you can use #doOnlyOnce: . It is in ProtoObject
and can be reset with:
self rearmOneShot
Hannes
More information about the Squeak-dev
mailing list
|