[gnome-shell/wip/verdre/fix-checkbox] checkbox: Correctly align label



commit 0f4aeb265405c9814a76246fbdbd9a00a1b9c2f9
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Thu Jan 30 15:26:32 2020 +0100

    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 183d719c8d..5b3c842a4d 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);


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