js: Set BoxLayout orientation
Use new `orientation` property instead of `vertical`. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3614>
This commit is contained in:
@ -75,7 +75,7 @@ class ListSearchResult extends SearchResult {
|
||||
|
||||
let content = new St.BoxLayout({
|
||||
style_class: 'list-search-result-content',
|
||||
vertical: false,
|
||||
orientation: Clutter.Orientation.HORIZONTAL,
|
||||
x_align: Clutter.ActorAlign.START,
|
||||
x_expand: true,
|
||||
y_expand: true,
|
||||
@ -157,7 +157,10 @@ const SearchResultsBase = GObject.registerClass({
|
||||
},
|
||||
}, class SearchResultsBase extends St.BoxLayout {
|
||||
_init(provider, resultsView) {
|
||||
super._init({style_class: 'search-section', vertical: true});
|
||||
super._init({
|
||||
style_class: 'search-section',
|
||||
orientation: Clutter.Orientation.VERTICAL,
|
||||
});
|
||||
|
||||
this.provider = provider;
|
||||
this._resultsView = resultsView;
|
||||
@ -300,7 +303,7 @@ class ListSearchResults extends SearchResultsBase {
|
||||
|
||||
this._content = new St.BoxLayout({
|
||||
style_class: 'list-search-results',
|
||||
vertical: true,
|
||||
orientation: Clutter.Orientation.VERTICAL,
|
||||
x_expand: true,
|
||||
});
|
||||
this._container.add_child(this._content);
|
||||
@ -555,7 +558,7 @@ export const SearchResultsView = GObject.registerClass({
|
||||
_init() {
|
||||
super._init({
|
||||
name: 'searchResults',
|
||||
vertical: true,
|
||||
orientation: Clutter.Orientation.VERTICAL,
|
||||
x_expand: true,
|
||||
y_expand: true,
|
||||
});
|
||||
@ -565,7 +568,7 @@ export const SearchResultsView = GObject.registerClass({
|
||||
|
||||
this._content = new MaxWidthBox({
|
||||
name: 'searchResultsContent',
|
||||
vertical: true,
|
||||
orientation: Clutter.Orientation.VERTICAL,
|
||||
x_expand: true,
|
||||
});
|
||||
|
||||
@ -916,7 +919,7 @@ class ProviderInfo extends St.Button {
|
||||
});
|
||||
|
||||
this._content = new St.BoxLayout({
|
||||
vertical: false,
|
||||
orientation: Clutter.Orientation.HORIZONTAL,
|
||||
style_class: 'list-search-provider-content',
|
||||
});
|
||||
this.set_child(this._content);
|
||||
@ -928,7 +931,7 @@ class ProviderInfo extends St.Button {
|
||||
|
||||
const detailsBox = new St.BoxLayout({
|
||||
style_class: 'list-search-provider-details',
|
||||
vertical: true,
|
||||
orientation: Clutter.Orientation.VERTICAL,
|
||||
x_expand: true,
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user