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



commit 9840feb287cb81550f3ccdf1f868a3152a0f7ea9
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.

 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]