Re: Vertically aligning components in St
- From: Giovanni Campagna <scampa giovanni gmail com>
- To: Jason Heeris <jason heeris gmail com>
- Cc: gnome-shell-list <gnome-shell-list gnome org>
- Subject: Re: Vertically aligning components in St
- Date: Sat, 2 Mar 2013 15:56:27 +0100
2013/3/2 Jason Heeris <jason heeris gmail com>:
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.
St.Align.START, MIDDLE and END
It should be StAlign in the St documentation, file a bug if not.
G.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]