Bug 322459 - Subject line not right-aligned when RTL (BiDi regression)
Summary: Subject line not right-aligned when RTL (BiDi regression)
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 5.2.3
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: rtl
Depends on:
Blocks:
 
Reported: 2013-07-16 22:14 UTC by Shai
Modified: 2020-11-08 12:54 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A message with Hebrew subject and text (30.00 KB, image/png)
2013-07-16 22:19 UTC, Shai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shai 2013-07-16 22:14:48 UTC
When writing an RTL subject line in a new message, the subject line control stays left-aligned -- but it should be right-aligned; text in the message body does get the correct alignment automatically.

Surprisingly, if the composer window is resized, the subject is then aligned correctly; but it should align correctly already when the subject is typed in.

Reproducible: Always

Steps to Reproduce:
0. Have an RTL language available for use (Arabic and Hebrew are the most common ones, AFAIK).
1. Start composing a new mail
2. Write an RTL subject
3. For comparison, also write an RTL (plaintext) body.
Actual Results:  
Subject line is left-aligned even with RTL content

Expected Results:  
Subject line should set its alignment according to its directionality

As noted, resizing the composer window appears to update alignment.
Note that directionality is set correctly automatically; the problem is only with alignment.
An image showing the problem will be attached shortly (why can't I add it now...?)
This is a regression from KMail1.
Comment 1 Shai 2013-07-16 22:19:15 UTC
Created attachment 81148 [details]
A message with Hebrew subject and text

In the attached screenshot is a message with Hebrew subject and text, as it is displayed when entered naturally. The subject line (red) is left-aligned, which is wrong; the body text (blue) is right-aligned, which is correct.
Comment 2 Laurent Montel 2013-07-17 17:23:40 UTC
In qlineedit is it ok ?
for example addressline?
Comment 3 Shai 2013-07-17 18:30:29 UTC
Yes, address lines changed alignment properly as they always have (there's a different problem there -- the "clear text" mark is in the field and it hides the first 1-2 characters, but that's the same as KMail1).
Comment 4 Laurent Montel 2013-07-18 05:21:36 UTC
(In reply to comment #3)
> Yes, address lines changed alignment properly as they always have (there's a
> different problem there -- the "clear text" mark is in the field and it
> hides the first 1-2 characters, but that's the same as KMail1).

Ok for clear text report it to kdelibs
Comment 5 Christoph Feck 2013-07-23 11:42:48 UTC
The issue from comment #3 has been fixed for 4.11, see bug 284072.
Comment 6 Laurent Montel 2013-10-01 20:53:21 UTC
See comment 5
I close it.
If it's still in 4.11 reopen it.
Comment 7 Christoph Feck 2013-10-01 22:00:04 UTC
Laurent, I was referring to the "clear text mark hides the first 1-2 characters" that got fixed, not the "wrong text direction" this bug report is about.

Shai, could you please update to KDE 4.11.2, and check if this works correctly now?
Comment 8 Shai 2013-10-12 11:41:44 UTC
Finally got around to it -- it's a little hard since one cannot run a 4.11 KMail in a 4.10 KDE session, and there's essentially no documentation available on starting up an own-compiled-KDE session (there used to be some, I think, but now it's gove, presumably out-of-date as well).

So I hope what I did was right -- used the .xssession, kde-env-master an kde-env-user files from kdesrc-build, prefixed PATH and LD_LIBRARY_PATH with ~/kde4/bin and ~/kde4/lib respectively, pointed DISPLAY at a freshly-started Xephyr, and ran startkde.

I know this setting isn't perfect, because I couldn't get the keyboard layout switching to work.

Anyway, under this environment, as Christoph said -- the clear-text-mark now behaves well, but the subject-line alignment is still wrong until the window is resized. Thus, reopening.
Comment 9 Denis Kurz 2016-09-24 18:14:21 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 10 Shai 2016-10-02 08:14:57 UTC
Still as reported, with KMail 5.2.3, Using KDE Frameworks 5.25.0 and Qt 5.6.1 on Debian Testing.