TableLayout not quite working right?

Ken Causey ken at ineffable.com
Fri Apr 5 22:00:20 UTC 2002


I'm using 3.2g-4811.  Some code:

r _ RectangleMorph new
	layoutPolicy: (TableLayout new);
	vResizing: #shrinkWrap;
	hResizing: #shrinkWrap;
	listDirection: #topToBottom.
{'1'. '2'. '3'} do: [ :item |
	r addMorph:
		(StringMorph new contents: item).
	r addMorph:
		(TextMorph new contents: 'Number ', item;
			borderWidth: 1;
			autoFit: false;
			extent: 200 at 15)].
r openInHand.

First of all, this seems to render upside down.  The StringMorph 1 is on
the bottom and the TextMorph with 'Number 3' is on the top.  Change the
RectangleMorph's listDirection: to #bottomToTop, now the order seems
correct (or actually wrong again, but correct for #topToBottom) but now
the vResizing: #shrinkWrap is not honored.  The RectangleMorph has its
default size and can be resized.

How much of this am I misunderstanding and how much is just broke?

Ken Causey







More information about the Squeak-dev mailing list