[UI] Centering elements in TableLayout

Chris Muller asqueaker at gmail.com
Tue Mar 16 15:00:10 UTC 2010


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..

On Tue, Mar 16, 2010 at 9:18 AM, Esther <stern.taler at arcor.de> wrote:
>
> Hi,
>
> I'm trying to do the following:
>
> I have a morph for which I set TableLayout as layout Policy. List direction
> is topToBottom. Then I add some rectangular morphs with a centered string
> morph in each of them (serving as label). Most of the rectangular morphs are
> placed exactly one below the other, but some of them (which have a longer
> label) are placed out of the row.
>
> http://n4.nabble.com/file/n1594908/notInALine.jpg
>
> So I wonder how to get them all in a row with table layout. Everything I
> tried by now (listCentering- and cellPositioning-values) did not work for
> me. The only thing that a first seemed to work was listCentering:
> #justified, but then vertical spaces increase (for some reason I don't
> understand) when I scroll the field.
>
> Can anyone give me a hint how to solve this problem?
> --
> View this message in context: http://n4.nabble.com/Centering-elements-in-TableLayout-tp1594908p1594908.html
> Sent from the Squeak - UI mailing list archive at Nabble.com.
> _______________________________________________
> UI mailing list
> UI at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/ui
>


More information about the UI mailing list