Bug 322456 - Text hidden by "clear" button in textboxes when typing in RTL
Summary: Text hidden by "clear" button in textboxes when typing in RTL
Status: RESOLVED DUPLICATE of bug 284072
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdeui (show other bugs)
Version: 4.10.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL: http://wstaw.org/m/2013/07/16/plasma-...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-16 21:29 UTC by Josh Liberty
Modified: 2013-07-17 11:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Liberty 2013-07-16 21:29:39 UTC
When I type into various textboxes (krunner, konqueror location bar, etc etc) in an RTL language (Hebrew), the first 1-2 letters are hidden by the "clear" button.
The text should start take to account the necessary margin.

Screenshot attached.

Reproducible: Always




It seems there have been some attempts to resolve this, but they don't really work, and lead to inconsistent behaviour. For example, in Konqueror, when I click on the menu bar, delete everything, and then *paste* hebrew text, then it is displayed RTL but with a margin so it's not under the "clear" button. If however I *type* text, it goes under the clear button. 

Also, sometimes I type in English, but for some reason there is unexplained margin on the left side of the textbox (as if someone tried to workaround this issue), but a "clear" button isn't actually shown. Later a clear button might be shown on the left side, even though I'm typing in English so it should be on the right side (and then the english text is hidden!).

Bottom line - something is very wrong with the way RTL text input is handled.
Comment 1 Hugo Pereira Da Costa 2013-07-16 22:16:31 UTC
Hi Josh
Just to make sure. Can you double-check that it does not happen with another widget style (e.g. plastique, or skulpture) ? 
my way of testing right-to-left layout so far has been with "oxygen-demo" (from terminal) and checking the right-to-left checkbox at the bottom. From here, I do see issue, but they are identical whether I use oxygen or any other widget style. ... which would in turn mean that the bug is upstream (KLineEdit, or Qt). So the about double-check would really be usefull before I start investigating further.

Thanks,

Hugo
Comment 2 Josh Liberty 2013-07-16 22:20:17 UTC
You're right, it does happen on other engines too. Can you recommend a place to report it?
Comment 3 Hugo Pereira Da Costa 2013-07-16 22:22:58 UTC
Reassigned to kdelibs (since ktextedit is part of kdeui)
Comment 4 Kai Uwe Broulik 2013-07-17 08:56:04 UTC
Should be checked whether this is still valid in KF5 where this feature has been moved to Qt upstream.
Comment 5 Christoph Feck 2013-07-17 11:47:03 UTC

*** This bug has been marked as a duplicate of bug 284072 ***