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:
parent
e4446cd15c
commit
44d819149f
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user