[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: Thu, 13 Sep 2018 20:43:33 +0000 (UTC)
commit 84a9ffabb62bd4a2dff1c20d7d654fb75225c823
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]