[gnome-shell/wip/jimmac/dash-icon-spacing: 29/72] overviewControls: Move y_align flag to DashActor




commit 3871e625d46eca0cc5c83259b427a827ff73a72b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Jan 22 10:35:39 2021 -0300

    overviewControls: Move y_align flag to DashActor
    
    And replace it with y_expand. This is to give the bin layout manager the
    proper hints as to how to allocate the Dash.

 js/ui/dash.js             | 1 +
 js/ui/overviewControls.js | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index 9c8639b280..bbf3baa182 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -288,6 +288,7 @@ class DashActor extends St.Widget {
             layout_manager: layout,
             clip_to_allocation: true,
             x_align: Clutter.ActorAlign.CENTER,
+            y_align: Clutter.ActorAlign.CENTER,
         });
     }
 
diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js
index f934b07750..634244115a 100644
--- a/js/ui/overviewControls.js
+++ b/js/ui/overviewControls.js
@@ -16,8 +16,7 @@ class DashFader extends St.Bin {
         super._init({
             child: dash,
             x_expand: true,
-            x_align: Clutter.ActorAlign.CENTER,
-            y_align: Clutter.ActorAlign.END,
+            y_expand: true,
         });
 
         this._dash = dash;


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