[gnome-shell/gbsneto/remove-generic-container: 21/21] dash: expand and center align DashItemContainer



commit d52f3677299182109a648291381adf72311ab1a2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Sep 13 17:37:54 2018 -0300

    dash: expand and center align DashItemContainer
    
    This is necessary to keep the small actor that shows up
    during drag motion center aligned.

 js/ui/dash.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index 65a37b127..60d030941 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -39,7 +39,9 @@ var DashItemContainer = new Lang.Class({
 
     _init() {
         this.parent({ style_class: 'dash-item-container',
-                      pivot_point: new Clutter.Point({ x: .5, y: .5 }) });
+                      pivot_point: new Clutter.Point({ x: .5, y: .5 }),
+                      x_expand: true,
+                      x_align: Clutter.ActorAlign.CENTER });
 
         this._labelText = "";
         this.label = new St.Label({ style_class: 'dash-label'});


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