js: Cleanup usage of StScrollView
Whilst you *can* use add_actor() with ScrollView, it's more idiomatic to work on :child Cleanup a few extras along the way Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3010>
This commit is contained in:
@ -573,9 +573,9 @@ export const SearchResultsView = GObject.registerClass({
|
||||
style_class: 'search-display vfade',
|
||||
x_expand: true,
|
||||
y_expand: true,
|
||||
hscrollbar_policy: St.PolicyType.NEVER,
|
||||
child: this._content,
|
||||
});
|
||||
this._scrollView.set_policy(St.PolicyType.NEVER, St.PolicyType.AUTOMATIC);
|
||||
this._scrollView.add_child(this._content);
|
||||
|
||||
let action = new Clutter.PanAction({interpolate: true});
|
||||
action.connect('pan', this._onPan.bind(this));
|
||||
|
Reference in New Issue
Block a user