From 38c1ebba624c23f13b7db82284b9e309f544e723 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 13 Sep 2018 17:37:54 -0300 Subject: [PATCH] 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'});