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

Bug 313687

Summary: [BIDI] Content flashes when Resizing the "RTL" orientation style Composite
Product: [Eclipse Project] Platform Reporter: Zhou Xing <xzxing>
Component: SWTAssignee: Felipe Heidrich <eclipse.felipe>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: liujuny, mukund, raji, Silenio_Quarti, xzxing
Version: 3.4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Sample plugin to reproduce the problem
none
A Screenshot to explain the MenuItems' function in the sample none

Description Zhou Xing CLA 2010-05-20 06:26:14 EDT
Build Identifier: M20090211-1700

  When setting the SWT composite's (eg. Shell ) orientation style as ¡°SWT.RIGHT_TO_LEFT¡±, the content of the children composites will be flashing seriously when you Resize ( eg. drag and drop ) the Parent composite. The flashing phenomenon  is very obvious than the "LEFT_TO_RIGHT" mode, which will lead to a bad user experience.

Reproducible: Always

Steps to Reproduce:
1. Import the sample plugin in the attachment(com.ibm.eclipse.rtl.sample) into workspace;
2. Run the sample plugin in "Eclipse Application" mode;
3. Click the "Rtl Test Sample Menu" ( as showed in the screenshot attachment );
4. The sample plugin provide two groups of samples, one is for "RTL" mode, the other is for "LTR" mode, which is used to compare with the situation in "RTL" mode;
5. In "Rtl Test Sample" group, there're five cases:
   a) "Rtl Test Sample - Text Action" add a single Text composite into Shell, to show the plain-text file's content;
   b) "Rtl Test Sample - WebSite Action" add a single SWT Browser composite into Shell to show the website's content;
   c) "Rtl Test Sample - Symphony Action" add a single SWT Browser composite into Shell to show the local Symphony HTML file's content;
   d) "Rtl Test Sample - Picture Action" add a single Label composite with Image into Shell to show the local picture file's content;
   e) "Rtl Test Sample - All-in-One Action" add the four compostie mensioned above into Shell using a GridLayout, to show the four kind of content together.
   The "Ltr Test Sample" is simillar, which is used to compare with the "Rtl Test Sample", it's created for your convenience to perceive the difference.
6. Drag and Drop the Shell to resize it, you will notice that the RTL mode is flashing more seriously which would definitely influence the user experience.
Comment 1 Zhou Xing CLA 2010-05-20 06:29:44 EDT
Created attachment 169306 [details]
Sample plugin to reproduce the problem

import this sample plugin into your workspace, and run it under the "Eclipse Application" mode
Comment 2 Zhou Xing CLA 2010-05-20 06:36:40 EDT
Created attachment 169307 [details]
A Screenshot to explain the MenuItems' function in the sample
Comment 3 Felipe Heidrich CLA 2010-06-10 10:28:32 EDT
Do you have acess access to localized Arabic or Hebrew windows machine ?
If you do, please try to resize windows explorer run on it, it flashes a lot more than windows explorer on an English machine.

Is the flash you see in RTL Eclipse much worse than the flash you see in RTL windows explorer ? Or is it just as bad ?
Comment 4 Zhou Xing CLA 2010-06-10 21:30:59 EDT
(In reply to comment #3)
> Do you have acess access to localized Arabic or Hebrew windows machine ?
> If you do, please try to resize windows explorer run on it, it flashes a lot
> more than windows explorer on an English machine.
> 
> Is the flash you see in RTL Eclipse much worse than the flash you see in RTL
> windows explorer ? Or is it just as bad ?

I tried in RTL windows explorer with localized Arabic and Hebrew, when resizing it, the flashing is serious too, almost as bad as in RTL Eclipse browser.
Comment 5 Felipe Heidrich CLA 2010-06-11 08:48:04 EDT
(In reply to comment #4)
> I tried in RTL windows explorer with localized Arabic and Hebrew, when resizing
> it, the flashing is serious too, almost as bad as in RTL Eclipse browser.

This is a bug in Windows. It probably looks a bit worse in Eclipse because it has more content in the window (more controls).

Closing as not eclipse.