calendar: Fix alignment of world clocks header in RTL

Signed-off-by: Yosef Or Boczko <yoseforb@gmail.com>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2240>
This commit is contained in:
Yosef Or Boczko 2022-03-11 12:10:24 +02:00 committed by Florian Müllner
parent e4446cd15c
commit 44d819149f

View File

@ -400,7 +400,10 @@ class WorldClocksSection extends St.Button {
x_align: Clutter.ActorAlign.START,
text: title,
});
layout.attach(header, 0, 0, 2, 1);
if (this._grid.text_direction === Clutter.TextDirection.RTL)
layout.attach(header, 2, 0, 1, 1);
else
layout.attach(header, 0, 0, 2, 1);
this.label_actor = header;
for (let i = 0; i < this._locations.length; i++) {