[BUG] Embedded TextMorph autoFill with empty text problem!

Ned Konz ned at bike-nomad.com
Tue Jun 22 21:08:18 UTC 2004

On Tuesday 22 June 2004 12:32 pm, John R. Pierce wrote:
> If you use a larger embedding morph then the one I had in my sample, you
> will actually see the new text showing up on the second line of the morph.
>  This may be a clue as to what is going on.
> Lastly, I noticed this can be fixed by hacking updateFromParagraph and
> adding an "ActiveWorld doOneCycle" call right after the call to "self fit"
> (near the top of the method).

Yeah, when I did the NCDisplayTextMorph for Connectors I ended up doing 
something roughly like this (but only when autoFit and no wrap)
(lifted from the StringMorphEditor):

	| priorEditor |
	super updateFromParagraph.
	priorEditor := editor.		"Save editor state"
	self releaseParagraph.		"Release paragraph so it will grow with selection."
	self paragraph.				"Re-instantiate to set new bounds"
		ifNotNil: [self installEditorToReplace: priorEditor].
	self editor

Ned Konz

More information about the Squeak-dev mailing list