From 0f4aeb265405c9814a76246fbdbd9a00a1b9c2f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Thu, 30 Jan 2020 15:26:32 +0100 Subject: [PATCH] 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 --- js/ui/checkBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/checkBox.js b/js/ui/checkBox.js index 183d719c8..5b3c842a4 100644 --- a/js/ui/checkBox.js +++ b/js/ui/checkBox.js @@ -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);