[Q] More morphic layout fun

Ned Konz ned at bike-nomad.com
Fri May 30 23:15:27 UTC 2003


Brian Brown wrote:
> G'day all,
> 	In the following code, I'm programmatically adding the contents of 
> ImageImports to a Rectangle morph... the results aren't at all what I 
> expect... the created IconicButtons are laid out in a nice 4x3 grid, but they 
> extend outside the bounds of the Morph they are being added to, and their 
> bounds are increasing as they are added... 

> 				fullFrame: (LayoutFrame fractions: (startx at starty extent: endx at endy))
> 				].
> 			startx := startx + 0.25. endx := endx + 0.25.
> 			(startx > 0.75) ifTrue: [
> 				startx := 0. 
> 				endx := 0.25.
> 				starty := starty + 0.33.

I think you mean
(startx at starty extent: 0.25 at 0.33)




More information about the Squeak-dev mailing list