dateMenu: Bottom-align weather title/location
The two labels use different font sizes, so they don't align properly. Unfortunately we don't have BASELINE alignment in Clutter, but at least END comes closer than the default FILL. https://gitlab.gnome.org/GNOME/gnome-shell/issues/1927
This commit is contained in:
parent
669d12f957
commit
18a1435c25
@ -272,6 +272,7 @@ class WeatherSection extends St.Button {
|
||||
style_class: 'weather-header',
|
||||
x_align: Clutter.ActorAlign.START,
|
||||
x_expand: true,
|
||||
y_align: Clutter.ActorAlign.END,
|
||||
text: _('Weather'),
|
||||
}));
|
||||
box.add_child(titleBox);
|
||||
@ -279,6 +280,7 @@ class WeatherSection extends St.Button {
|
||||
this._titleLocation = new St.Label({
|
||||
style_class: 'weather-header location',
|
||||
x_align: Clutter.ActorAlign.END,
|
||||
y_align: Clutter.ActorAlign.END,
|
||||
});
|
||||
titleBox.add_child(this._titleLocation);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user