dash: expand and center align DashItemContainer

This is necessary to keep the small actor that shows up
during drag motion center aligned.
This commit is contained in:
Georges Basile Stavracas Neto 2018-09-13 17:37:54 -03:00
parent 557b232c89
commit 38c1ebba62
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385

View File

@ -39,7 +39,9 @@ var DashItemContainer = new Lang.Class({
_init() { _init() {
this.parent({ style_class: 'dash-item-container', 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._labelText = "";
this.label = new St.Label({ style_class: 'dash-label'}); this.label = new St.Label({ style_class: 'dash-label'});