[gnome-shell/gnome-41] calendar: Fix alignment of world clocks header in RTL
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-41] calendar: Fix alignment of world clocks header in RTL
- Date: Fri, 6 May 2022 14:10:00 +0000 (UTC)
commit 01c8000a31c121537cd93bc54225d878a06460c8
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>
(cherry picked from commit 44d819149f16e6f9b8ed7cb243a227ffa7658ce3)
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 0fdfb8bcda..2672f48c55 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -351,7 +351,10 @@ class WorldClocksSection extends St.Button {
let header = new St.Label({ style_class: 'world-clocks-header',
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]