Mantis - Squeak
Viewing Issue Advanced Details
5117 Morphic minor always 09-26-06 21:14 09-30-06 15:32
Simon Guest  
 
normal  
new 3.9  
open  
none    
none  
0005117: TextMorph autofit not fitting bounds to contents on edit
I have a TextMorph with autofit on (and wrap to bounds off). When I
change the contents, by sending a contents: message, it recomputes the
bounds correctly, changing size to fit the text.

However, when I edit the text by clicking on the morph and typing, it
does not recompute the bounds until triggered by some later
unconnected event, such as a duplicate.

I think there's something missing in the update processing for editing
a TextMorph, but I can't quite see where it is.

This is Squeak 3.9 gamma 7055.
 TextMorph.sjg.1.cs [^] (646 bytes) 09-30-06 15:31

Notes
(0007525)
Simon Guest   
09-30-06 15:32   
Hi,

I think I found the problem: in TextMorph>>keyboardFocusChange: it should be calling releaseParagraph, rather than releaseEditor.

Proposed fix attached in uploaded change set.

cheers,
Simon