Games with Scrolling and Resizing [GOODIE] ResizingGrid

Ross Boylan RossBoylan at
Sat May 28 22:39:42 UTC 2005

Commentary on the previous work:
That was a goodie because I don't anticipate we'd want to put it in
the mainline image; it's mostly an exploration of layout, morphs, and
scrollbars.  I did need the functionality, however.

ScrollBar tracks values mostly in fractions between 0 and 1.
ScrollPane's mostly use pixels.

I was having trouble getting this to work with scrollbars because the
original RBScrollLayout code was
layout: aMorph in: newBounds
	"Compute the layout for the given morph based on the new
	"transformmorph's didn't expect to do layout, so don't
	aMorph scroller doLayoutIn: 
	       (aMorph scroller transform globalBoundsToLocal:
Every time I scrolled this repositioned the material inside the
scrollpane, keeping the left hand edge always in view.  (Well, not
always, but I didn't look into why.  Sometimes clicking on the arrows
would work to move the image in the scrollpane).

RB = Ross Boylan, not Refactoring Browser, in the changeset.

This was in a 3.6 image; later images support two way scrolling with
the basic ScrollPane rather than TwoWayScrollPane.

More information about the Squeak-dev mailing list