From 44d819149f16e6f9b8ed7cb243a227ffa7658ce3 Mon Sep 17 00:00:00 2001 From: Yosef Or Boczko Date: Fri, 11 Mar 2022 12:10:24 +0200 Subject: [PATCH] calendar: Fix alignment of world clocks header in RTL Signed-off-by: Yosef Or Boczko Part-of: --- 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 ca98cdd24..bd363f323 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++) {