[genericDisplay] Fix selection not being set correctly
We need to check if the display actor is an instance of Shell.OverflowList or St.BoxLayout to use the appropriate function for getting its child with a given index.
This commit is contained in:
parent
050e710770
commit
21f15246a6
@ -734,7 +734,11 @@ GenericDisplay.prototype = {
|
||||
// Returns a display item based on its index in the ordering of the
|
||||
// display children.
|
||||
_findDisplayedByIndex: function(index) {
|
||||
let actor = this._list.get_children()[index];
|
||||
let actor;
|
||||
if (this.actor instanceof Shell.OverflowList)
|
||||
actor = this.actor.get_displayed_actor(index);
|
||||
else
|
||||
actor = this._list.get_children()[index];
|
||||
return this._findDisplayedByActor(actor);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user