The Mystery of the Morph

frits.swinkels frits.swinkels at shaw.ca
Sat Feb 14 22:35:55 UTC 2004


See my commentary on the Ever-widening PluggableTextMorph of Dec 30,
where adjustLayoutBounds creates other grief. I wished I knew what
problem that method is trying to address.

On Sat, 2004-02-14 at 10:43, Ned Konz wrote:
> On Saturday 14 February 2004 3:15 am, Trygve Reenskaug wrote:
> > m listDirection: #topToBottom.
> > m listDirection: #rightToLeft.
> >
> > WE NOW HAVE THREE CIRCLES STACKED ON TOP OF EACH ORDER WITHIN A SQUARE!!!
> >
> > I must be missing something. But what?
> 
> You're not missing something. It looks like Morph>>adjustLayoutBounds is 
> broken in the case where the submorphBounds origin is not the same as the 
> original layoutBounds origin.
> 
> So changing from a vertical layout to #rightToLeft, or changing from a 
> horizontal layout to #bottomToTop doesn't work right.
> 
> -- 
> Ned Konz
> http://bike-nomad.com/squeak/
> 





More information about the Squeak-dev mailing list