Q: Updating TextMorph when embedded morph change size?

Daniel Joyce daniel.a.joyce at worldnet.att.net
Sun Mar 10 22:26:56 UTC 2002


> I tested the code but it does not help, because I resize the embedded
> morph
> within the text. You can test by creating a TextMorph and turn on
> accepts drops
> and drop a morph on the text, then resize the dropped morph with the
> yellow handle.
> Seems like textmorph must be told to look at it's submorphs and whether
> any of them
> has changed.
>
> Karl

	Well, don't child morphs send layoutchanged to parents when they change 
sizes?

	Really, the morphs should send layout changed all the way up to the 
worldview, so all parents in a chain can adapt if need be. I know some 
morphs don't relay this on as needed.

	If so, perhaps TextMorph is not listening properly..

	Daniel



More information about the Squeak-dev mailing list