Center the search results as well

Use overlay_scrollbars and the same padding.

https://bugzilla.gnome.org/show_bug.cgi?id=694701
This commit is contained in:
Jasper St. Pierre 2013-02-25 14:48:06 -05:00
parent 96e02c4c2e
commit 310dc10c4d
2 changed files with 3 additions and 1 deletions

View File

@ -860,6 +860,7 @@ StScrollBar StButton#vhandle:active {
padding: 4px 16px; padding: 4px 16px;
} }
.search-display > StBoxLayout,
.all-apps > StBoxLayout, .all-apps > StBoxLayout,
.frequent-apps > StBoxLayout { .frequent-apps > StBoxLayout {
/* horizontal padding to make sure the scrollbar doesn't overlap content */ /* horizontal padding to make sure the scrollbar doesn't overlap content */

View File

@ -331,7 +331,8 @@ const SearchResults = new Lang.Class({
this._scrollView = new St.ScrollView({ x_fill: true, this._scrollView = new St.ScrollView({ x_fill: true,
y_fill: false, 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.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
this._scrollView.add_actor(scrollChild); this._scrollView.add_actor(scrollChild);
let action = new Clutter.PanAction({ interpolate: true }); let action = new Clutter.PanAction({ interpolate: true });