Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 208884 - GTK-BIDI: RTL Alignment problems in CLabel
Summary: GTK-BIDI: RTL Alignment problems in CLabel
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Bogdan Gheorghe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-06 08:48 EST by Ahmed Moharram CLA
Modified: 2009-09-29 05:05 EDT (History)
8 users (show)

See Also:


Attachments
RTL CLabel alignment problems (83.26 KB, image/jpeg)
2007-11-06 08:48 EST, Ahmed Moharram CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmed Moharram CLA 2007-11-06 08:48:37 EST
Created attachment 82206 [details]
RTL CLabel alignment problems

Build ID: I20071101-2000

Steps To Reproduce:
Please check the attached screenshot of CLabel from RTL SWT Custom widgets view
Comment 1 Bogdan Gheorghe CLA 2008-05-13 17:46:48 EDT
I tried to reproduce this in the M7 build by running the CustomControlExample and putting the CLabel in RIGHT_TO_LEFT mode. The alignment bits all worked expected (note that LEFT is synonymous with LEAD and RIGHT is synonymous with TRAIL which makes more sense in RTL modes). 

Closing as WORKSFORME.
Comment 2 Mohamed Tarief CLA 2009-07-09 03:11:45 EDT
this defect was verified against IES 3.5.0 GM and the problem still exists.
Moharram , please reopen the defect.
Thank you.
Comment 3 Felipe Heidrich CLA 2009-07-09 10:23:02 EDT
This is the right behaviour. Compare it against Windows.

As bog explained, left doesn't mean 'absolute' left. Maybe we should change the strings to lead and trail.
In LTR, visuallly
lead edge = left edge
trail edge = right edge
In RTL,
lead edge = right edge
trail edge = left edge

Please explain why you think this problem should be reopened ?
Comment 4 Mohamed Tarief CLA 2009-07-14 04:43:55 EDT
Hello Felipe , yes , could you please change the strings to lead , trail , instead of left , right to remove any confusion , as Left,Right alignments are Bidi terms which means absolute Left and absolute Right.
Comment 5 Felipe Heidrich CLA 2009-07-14 10:43:28 EDT
(In reply to comment #4)
> Hello Felipe , yes , could you please change the strings to lead , trail ,
> instead of left , right to remove any confusion , as Left,Right alignments are
> Bidi terms which means absolute Left and absolute Right.

Okay, please open a new bug for it.
Comment 6 Mohamed Tarief CLA 2009-09-29 05:05:48 EDT
(In reply to comment #5)
> (In reply to comment #4)
> > Hello Felipe , yes , could you please change the strings to lead , trail ,
> > instead of left , right to remove any confusion , as Left,Right alignments are
> > Bidi terms which means absolute Left and absolute Right.
> 
> Okay, please open a new bug for it.


A new bug was created ,  Bug 283662.