Hi,
I would need help with understanding the magic behind alignment in Morphic.
Take the example from below. Could anyone help me with what I should do to have
the morph stretch all the way horizontally?
| scroll window morph |
scroll := ScrollPane new.
scroll
fillStyle: (SolidFillStyle color: Color blue);
vResizing: #spaceFill;
hResizing: #spaceFill.
morph := PanelMorph new.
morph
fillStyle: (SolidFillStyle color: Color yellow);
changeTableLayout;
listDirection: #topToBottom;
vResizing: #shrinkWrap;
hResizing: #spaceFill;
layoutInset: 10.
morph addMorphBack: (SimpleButtonMorph new width: 200; height: 200).
scroll scroller addMorph: morph.
window := SystemWindow new.
window addMorph: scroll fullFrame: (LayoutFrame fractions: (0 @ 0 corner: 1 @
1)).
window openInWorld
Cheers,
Doru
--
www.tudorgirba.com
"Every thing should have the right to be different."