TextMorph not fitting bounds to contents on edit

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

TextMorph not fitting bounds to contents on edit

Simon Guest-2
Hi,

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.

Any ideas?

This is Squeak 3.9 gamma 7055.

cheers,
Simon


Reply | Threaded
Open this post in threaded view
|

Re: TextMorph not fitting bounds to contents on edit

Simon Guest-2
At Sat, 23 Sep 2006 15:36:41 +0100,
Simon Guest wrote:
> I think there's something missing in the update processing for editing
> a TextMorph, but I can't quite see where it is.

In the absence of comments here, I've submitted a bug report on mantis
(bug no 0005117).

For what I'm trying to do, this is very annoying, so I'd appreciate a
hint from anyone who has an idea where the problem might be.

cheers,
Simon


Reply | Threaded
Open this post in threaded view
|

Re: TextMorph not fitting bounds to contents on edit

karl-8
Simon Guest skrev:

> At Sat, 23 Sep 2006 15:36:41 +0100,
> Simon Guest wrote:
>  
>> I think there's something missing in the update processing for editing
>> a TextMorph, but I can't quite see where it is.
>>    
>
> In the absence of comments here, I've submitted a bug report on mantis
> (bug no 0005117).
>
>  
Sorry for not responding earlier:
I think the issue is TextMorph>>releaseParagraph which will force a the
text to fit the bounds of the morph.
TextMorph is a crazy beast though...
Karl
>
>
>