[gnome-shell/gbsneto/remove-generic-container: 56/56] 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: 56/56] dash: expand and center align DashItemContainer
- Date: Sun, 30 Sep 2018 17:41:27 +0000 (UTC)
commit dfcb19a762d21bf0e5bc9b061d7cf2d2322ebc50
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]