From 1002bbc212f1e0697e856094170a19c814c9833e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 17 Mar 2015 16:46:08 +0100 Subject: [PATCH] calendar: Fix body alignment for RTL locales Since commit 75745fc23f3f22, the bodyStack itself is no longer start-aligned to not break custom body actors like chat notifications. However we still want "normal" body actors start-aligned to get the correct RTL behavior. --- js/ui/calendar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 0e03a2b4b..a79fd7e9f 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -122,7 +122,8 @@ const URLHighlighter = new Lang.Class({ _init: function(text, lineWrap, allowMarkup) { if (!text) text = ''; - this.actor = new St.Label({ reactive: true, style_class: 'url-highlighter' }); + this.actor = new St.Label({ reactive: true, style_class: 'url-highlighter', + x_expand: true, x_align: Clutter.ActorAlign.START }); this._linkColor = '#ccccff'; this.actor.connect('style-changed', Lang.bind(this, function() { let [hasColor, color] = this.actor.get_theme_node().lookup_color('link-color', false);