Re: Vertically aligning components in St



On 3 March 2013 01:11, Giovanni Campagna <scampa giovanni gmail com> wrote:
CSS vertical-align is not implemented, and StBoxLayout doesn't use the
standard [xy]_align and [xy]_expand properties.
Instead, it uses [xy]_align and [xy]_fill child properties, that you
can set with .add(actor, { y_align: St.Align.MIDDLE }).

Ah, that does it! What are the other possible values? The St reference
doesn't seem to have a "constants" page, and eg. TOP is causing
errors.

Also, looking at some other extensions, it looks like the StTable
layout *might* do baseline alignment (although I haven't personally
tested it out).

— Jason


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]