Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342476 - Bidi 3.7: Icons cropped when orientation set dynamically to RIGHT_TO_LEFT in image Label-s with SWT.NONE style.
Summary: Bidi 3.7: Icons cropped when orientation set dynamically to RIGHT_TO_LEFT in ...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-11 13:31 EDT by mariavin CLA
Modified: 2019-10-07 15:05 EDT (History)
6 users (show)

See Also:


Attachments
picture of the problem (22.46 KB, image/gif)
2011-04-11 13:45 EDT, mariavin CLA
no flags Details
Tests patch (401.42 KB, text/plain)
2011-04-12 03:32 EDT, mariavin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.