Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 376021

Summary: No right align for Label with Wrap
Product: [Eclipse Project] Platform Reporter: Bogdan Gheorghe <gheorghe>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ericwill, xixiyan
Version: 4.2Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Bogdan Gheorghe CLA 2012-04-03 17:54:24 EDT
If you create a Label with WRAP and RIGHT bits on GTK, and the size of the text in the label doesn't cause it to wrap, it will not honor the right alignment (Windows and Mac does).

To reproduce this:

1. run the Control Example, click on Label tab
2. set the SWT.WRAP style and choose Right alignment
3. Notice how the the text labels "one" and "two" remain left aligned while the wrapped label is right aligned
Comment 1 Eric Williams CLA 2018-05-14 14:40:40 EDT
Still reproducible, GTK3.22, 4.8 M7, Fedora 28.
Comment 2 Xi Yan CLA 2018-06-07 11:43:07 EDT
(In reply to Eric Williams from comment #1)
> Still reproducible, GTK3.22, 4.8 M7, Fedora 28.

The bug is not reproducible any more.