[gnome-shell/gbsneto/remove-generic-container: 38/38] dash: expand and center align DashItemContainer
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/remove-generic-container: 38/38] dash: expand and center align DashItemContainer
- Date: Tue, 9 Oct 2018 01:46:05 +0000 (UTC)
commit 38c1ebba624c23f13b7db82284b9e309f544e723
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]