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? I guess this has also something to do with the glamour bug inside tabs, no? Thierry
