Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005117 [Squeak] Morphic minor always 09-26-06 21:14 09-30-06 15:32
Reporter Simon Guest View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 3.9
Summary 0005117: TextMorph autofit not fitting bounds to contents on edit
Description 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.
Additional Information
Attached Files  TextMorph.sjg.1.cs [^] (646 bytes) 09-30-06 15:31

- Relationships

- Notes
(0007525 - 205 - 253 - 253 - 253 - 253 - 253)
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
 

- Issue History
Date Modified Username Field Change
09-26-06 21:14 Simon Guest New Issue
09-30-06 15:31 Simon Guest File Added: TextMorph.sjg.1.cs
09-30-06 15:32 Simon Guest Note Added: 0007525


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
33 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker