2014-07-23 8:00 GMT+02:00 Tudor Girba <[email protected]>:

> Hi,
>
> In GTInspector we use a TransformMorph inside the pager morph. It works
> fine, but spawning completion from a text morph that is placed inside this
> transform morph, the completion morphs appears in the wrong place.
>
> The issue comes from submorphBounds apparently not being right (this is
> what the completion morph relies on).
>
> Here is a simpler example, to exemplify what I am talking about:
>
> circle := CircleMorph new.
> morph := TransformMorph new.
> morph addMorph: circle.
> morph top: 100.
> morph left: 100.
> morph submorphBounds. "==> (100@100) corner: (140@140)"
> circle submorphBounds. "==> (0@0) corner: (40@40)"
>

This seems correct to me: a transformMorph is the one which shift its
contents (and reset the origin to its top left corner ?).

Why do you use a TransformMorph there?

Thierry


> Ideally, "circle submorphBounds" should start at 100@100. Is this a bug,
> or am I doing something wrong?
>
> Cheers,
> Doru
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
>

Reply via email to