[UI] Centering elements in TableLayout
Esther
stern.taler at arcor.de
Tue Mar 16 16:12:15 UTC 2010
Tuesday, March 16, 2010, 4:00:33 PM, you wrote:
> You might check your wrap setting, see that it's off. I think
> cellPositioning should be on the parent element, the container of the
> others, and set to #center..
Thanks for your quick answer.
Which wrap setting do you mean?
#wrapDirection is set to none, #wrapDirection is by default set to
#topLeft.
I already tried to set cellPositioning: #center for the container, but
unfortunately it doesn't work.
It seems as if the following combination works:
vResizing: #shrinkWrap;
listCentering: #justified;
wrapCentering: #center.
#shrinkWrap avoids the spaces from getting bigger while scrolling,
listCentering: #justified puts the inner elements below each other and
wrapCentering: #center puts everything to the center.
But I don't really understand how this works and why listCentering:
#center is not the right option...Morphics and LayoutPolicies seem to
be some kind of dark magic.
Greetings,
Esther
--
View this message in context: http://n4.nabble.com/Centering-elements-in-TableLayout-tp1594908p1595140.html
Sent from the Squeak - UI mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/ui/attachments/20100316/3bafb6a1/attachment.htm
More information about the UI
mailing list