From 310dc10c4dfbe86e62e660333e00f1aebfa248cd Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 25 Feb 2013 14:48:06 -0500 Subject: [PATCH] Center the search results as well Use overlay_scrollbars and the same padding. https://bugzilla.gnome.org/show_bug.cgi?id=694701 --- data/theme/gnome-shell.css | 1 + js/ui/searchDisplay.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index d1655fc62..a3575d92b 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -860,6 +860,7 @@ StScrollBar StButton#vhandle:active { padding: 4px 16px; } +.search-display > StBoxLayout, .all-apps > StBoxLayout, .frequent-apps > StBoxLayout { /* horizontal padding to make sure the scrollbar doesn't overlap content */ diff --git a/js/ui/searchDisplay.js b/js/ui/searchDisplay.js index 9c6c06314..c54cd0007 100644 --- a/js/ui/searchDisplay.js +++ b/js/ui/searchDisplay.js @@ -331,7 +331,8 @@ const SearchResults = new Lang.Class({ this._scrollView = new St.ScrollView({ x_fill: true, y_fill: false, - style_class: 'vfade' }); + overlay_scrollbars: true, + style_class: 'search-display vfade' }); this._scrollView.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC); this._scrollView.add_actor(scrollChild); let action = new Clutter.PanAction({ interpolate: true });