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

Bug 342476

Summary: Bidi 3.7: Icons cropped when orientation set dynamically to RIGHT_TO_LEFT in image Label-s with SWT.NONE style.
Product: [Eclipse Project] Platform Reporter: mariavin <mariavin>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: camle, eclipse.felipe, Lina.Kemmel, mariavin, pwebster, sadir
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
picture of the problem
none
Tests patch none

Description mariavin CLA 2011-04-11 13:31:40 EDT
Build Identifier: 20100617-1415

Seems to appear in unsymmetrical icons. The icon cropped if orientation of the label was set dynamically.   

Reproducible: Always
Comment 1 mariavin CLA 2011-04-11 13:45:28 EDT
Created attachment 192954 [details]
picture of the problem
Comment 2 Felipe Heidrich CLA 2011-04-11 15:45:43 EDT
Note that the button you are using to change the direction of label does not use the new setOrientation() API. It recreates the label with the new style.
This means this bug is old. It reminds me of bug 37427.
Comment 3 mariavin CLA 2011-04-12 03:32:07 EDT
Created attachment 193002 [details]
Tests patch

1. Needs to be applied in project level on the "org.eclipse.swt.examples" project
2. The test to use are in the added package : 

org.eclipse.swt.examples.mirroringTest

3. The tests files are: ControlExample.java and ControlExampleRTL.java
(run them as Java application)

the main difference that there's two additional buttons for the set orientation property check, they're not recreate the widgets but call their setOrientation.
Comment 4 mariavin CLA 2011-04-12 03:35:17 EDT
(In reply to comment #2)
> Note that the button you are using to change the direction of label does not
> use the new setOrientation() API. It recreates the label with the new style.
> This means this bug is old. It reminds me of bug 37427.

I've added test files they're in the patch I attached, the buttons there are not recreating the Label but use setOrientation. Should be applied on the :

"org.eclipse.swt.examples" project
Comment 5 Eclipse Genie CLA 2019-10-07 15:05:51 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.