Sure.. that is fine.. for the use case you state

Mine is quick n dirty hack to what I wanted:

but my use case is I do wish to have more of these sources partially visible through the vertical pane. so I restrain it to max of 210.. and width of 600 to be able to to throw up another pane next to it.. for grouping methods I am interested in .. to view it more closely..



On Tue, Feb 28, 2012 at 1:33 PM, Tudor Girba <tudor@tudorgirba.com> wrote:
Hi,

Thanks for the explanation.

I took a look. calculateExtent is triggered when you create the TextMorph. This is nice, but I am interested in getting the TextMorph to always expand to fill the width of the surrounding element, and to expand vertically according to the text :).

Here is a variation of what I am thinking about with just a simple list of morphs within a GeneralScrollPane:
https://gist.github.com/1930477

Cheers,
Doru



On 28 Feb 2012, at 03:22, Krishsmalltalk wrote:

> It does have the code to calculateTextExtent. You can modify it the way you want.
>
> The height is defaulted to a max 210 and fixed 600. But on expand it goes to max ht of 600
>
>
> Modify the logic in that method as you want it to
>
>
> On Feb 28, 2012, at 2:42 AM, Tudor Girba <tudor@tudorgirba.com> wrote:
>
>> Hi,
>>
>> I gave it a try. I am not necessarily looking for the looks as for the solution to make the text editor within the tree span horizontally and vertically with the size of the method. Unfortunately, this does not work in this example, either.
>>
>> Does anyone have ideas of how to make it work? :)
>>
>> Cheers,
>> Doru
>>
>>
>> On 27 Feb 2012, at 21:43, St�phane Ducasse wrote:
>>
>>> MorphicViewNewPackageBrowser new packageNames: #('UIManager') ; open
>>>
>>>
>>> But it does not look that nice :)
>>>
>>>
>>> On Feb 27, 2012, at 6:42 PM, St�phane Ducasse wrote:
>>>
>>>> this looks really nice.
>>>> I would really like to see if we cannot include a version so that people can browse change set and other code like that.
>>>> I'm really happy to see that the work done by alain and ben around treeMorph pays off that well.
>>>>
>>>> Stef
>>>>
>>>>
>>>>> Can take the latest of the package..
>>>>>
>>>>> PackageTree-Browser-Experiment
>>>>>
>>>>> * Find class added and a crude/ workable expand for text morph..
>>>>>
>>>>> As stated in the comments: will require a hack in Pharo 1.4 for now.
>>>>>
>>>>> Will work towards integrating TabbedPane with TWM/ this too as an
>>>>> addon with more complete features month ahead.
>>>>> <Pharo_CodeBrowser02.JPG>
>>>>
>>>>
>>>
>>>
>>
>> --
>> www.tudorgirba.com
>>
>> "One cannot do more than one can do."
>>
>>
>>
>>
>

--
www.tudorgirba.com

"Sometimes the best solution is not the best solution."