Hi,

On Wed, Jul 23, 2014 at 11:45 AM, Thierry Goubier <[email protected]
> wrote:

>
>
>
> 2014-07-23 11:10 GMT+02:00 Tudor Girba <[email protected]>:
>
>> Hi,
>>
>>
>>
>>
>>
>>> This seems correct to me: a transformMorph is the one which shift its
>>> contents (and reset the origin to its top left corner ?).
>>>
>>
>> Not really. The contract of submorphBounds should be that it returns an
>> absolute coordinate, as far as I understand.
>>
>
> In owner coordinates it says. (TransformMorph)
>
> However, it effectively returns a 0@0 origin.
>
>
>>
>>
>>> Why do you use a TransformMorph there?
>>>
>>
>> It is used for example in ScrollPane. This means that if you embed a
>> TextMorph inside a ScrollPane, you will have the same problem with
>> completion:
>>
>> scrollPane := ScrollPane new.
>> pasteUpMorph := PasteUpMorph new.
>> scrollPane scroller addMorph: pasteUpMorph.
>> scrollPane openInWindow top: 100; left: 100.
>>
>> pasteUpMorph submorphBounds "(0@0) corner: (50@40)"
>>
>
> Yes.
>
> What do you want to do about it? Rewrite a scroll pane in a different way?
> Or make sure that everything which creates over-morphs ask for global
> coordinates?
>

Ahh. I found it. The proper selector should not be submorphBounds but
positionInWorld. This one works properly.



> I guess this has also something to do with the glamour bug inside tabs, no?
>


Not inside tabs, but inside the a Finder or a Pager. Now, completion work
properly!

Cheers,
Doru


> Thierry
>
>

-- 
www.tudorgirba.com

"Every thing has its own flow"

Reply via email to