[gnome-shell] calendar: Fix alignment of world clocks header in RTL
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] calendar: Fix alignment of world clocks header in RTL
- Date: Mon, 28 Mar 2022 16:50:41 +0000 (UTC)
commit 44d819149f16e6f9b8ed7cb243a227ffa7658ce3
Author: Yosef Or Boczko <yoseforb gmail com>
Date: Fri Mar 11 12:10:24 2022 +0200
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>
js/ui/dateMenu.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index ca98cdd248..bd363f3232 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -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++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]