Getting a submorph to spaceFill

Lex Spoon lex at cc.gatech.edu
Fri Mar 26 15:16:10 UTC 2004


Ned Konz <ned at squeakland.org> wrote:
> Date: Thu, 25 Mar 2004 14:10:59 -0800
> From: Ned Konz <ned at squeakland.org>
> Subject: Re: Getting a submorph to spaceFill
> To: The general-purpose Squeak developers list <squeak-dev at lists.squeakfoundation.org>
> reply-to: The general-purpose Squeak developers list <squeak-dev at lists.squeakfoundation.org>
> 
> On Thursday 25 March 2004 12:54 pm, Lex Spoon wrote:
> > Morph>>bounds: calls #extent:, however. ÊIt sounds like something else
> > is going on.
> 
> There are paths through the layout code that don't call #extent:, though, and 
> instead just assign to bounds directly.

Ahh, it's #layoutBounds:, not #bounds:, and layoutBounds: does indeed
directly assign to bounds.

This looks like a bug.  Morphs used to be able to rely on intercepting
#extent:, and why should layout be any different?  At the least there
should be a comment here, but why not use #bounds: instead of
#layoutBounds: ?  And why not have #layoutBounds: fall down to
#position: and #extent:, the way #bounds: does ?


-Lex



More information about the Squeak-dev mailing list