search: hide provider actors when they're created

When the overview is created, search is populated with one actor for
each provider. As they're not hidden though, they will contribute to the
overall size request of the search page, which will shift upwards the
overview grid.

Reviewed-By: Jasper St. Pierre <jstpierre@mecheye.net>
This commit is contained in:
Cosimo Cecchi 2014-09-29 18:51:24 -07:00 committed by Cosimo Cecchi
parent 45937ed85d
commit 778ef365d9

View File

@ -535,6 +535,7 @@ const SearchResults = new Lang.Class({
providerDisplay = new GridSearchResults(provider, this.actor);
providerDisplay.connect('key-focus-in', Lang.bind(this, this._keyFocusIn));
providerDisplay.actor.hide();
this._content.add(providerDisplay.actor);
provider.display = providerDisplay;
},