mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
checkbox: Correctly align label
The label needs to be center-aligned vertically so it's positioned in the middle of the surrounding box, not at the top. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/967
This commit is contained in:
parent
0b3fec22d7
commit
0f4aeb2654
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ class CheckBox extends St.Button {
|
|||
this._box = new St.Bin({ y_align: Clutter.ActorAlign.START });
|
||||
container.add_actor(this._box);
|
||||
|
||||
this._label = new St.Label();
|
||||
this._label = new St.Label({ y_align: Clutter.ActorAlign.CENTER });
|
||||
this._label.clutter_text.set_line_wrap(true);
|
||||
this._label.clutter_text.set_ellipsize(Pango.EllipsizeMode.NONE);
|
||||
container.add_actor(this._label);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue