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:
@ -62,7 +62,7 @@ class TodayButton extends St.Button {
|
||||
});
|
||||
|
||||
const hbox = new St.BoxLayout({
|
||||
vertical: true,
|
||||
orientation: Clutter.Orientation.VERTICAL,
|
||||
x_expand: true,
|
||||
});
|
||||
this.child = hbox;
|
||||
@ -117,7 +117,7 @@ class EventsSection extends St.Button {
|
||||
x_expand: true,
|
||||
child: new St.BoxLayout({
|
||||
style_class: 'events-box',
|
||||
vertical: true,
|
||||
orientation: Clutter.Orientation.VERTICAL,
|
||||
x_expand: true,
|
||||
}),
|
||||
});
|
||||
@ -135,7 +135,7 @@ class EventsSection extends St.Button {
|
||||
|
||||
this._eventsList = new St.BoxLayout({
|
||||
style_class: 'events-list',
|
||||
vertical: true,
|
||||
orientation: Clutter.Orientation.VERTICAL,
|
||||
x_expand: true,
|
||||
});
|
||||
this.child.add_child(this._eventsList);
|
||||
@ -271,7 +271,7 @@ class EventsSection extends St.Button {
|
||||
for (let event of events) {
|
||||
const box = new St.BoxLayout({
|
||||
style_class: 'event-box',
|
||||
vertical: true,
|
||||
orientation: Clutter.Orientation.VERTICAL,
|
||||
});
|
||||
box.add_child(new St.Label({
|
||||
text: event.summary,
|
||||
@ -552,7 +552,7 @@ class WeatherSection extends St.Button {
|
||||
|
||||
let box = new St.BoxLayout({
|
||||
style_class: 'weather-box',
|
||||
vertical: true,
|
||||
orientation: Clutter.Orientation.VERTICAL,
|
||||
x_expand: true,
|
||||
});
|
||||
|
||||
@ -933,7 +933,7 @@ class DateMenuButton extends PanelMenu.Button {
|
||||
vbox.add_child(this._calendar);
|
||||
|
||||
const displaysBox = new St.BoxLayout({
|
||||
vertical: true,
|
||||
orientation: Clutter.Orientation.VERTICAL,
|
||||
x_expand: true,
|
||||
style_class: 'datemenu-displays-box',
|
||||
});
|
||||
|
Reference in New Issue
Block a user