nikhilbchilwant / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
1 stars 1 forks source link

ScrollTable Resizing is not working properly with FireFox (and I think in other browsers too) in case or RTL locales #207

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of gwt and gwt-incubator are you using? GWT 1.5.3

What OS and browser are you using? FireFox 3.0.4

Do you see this error in hosted mode, web mode, or both? Web mode

(If possible, please include a test case that shows the problem)
1- Add BODY css class in the project's main CSS file with the following:
body{
    direction: inherit; 
}
2- Add Arabic locale to the project by adding the following Tag to the
Module XML file:
<extend-property name="locale" values="ar_sa"/>

3- Use the sample code provided in the ScrollTable documentation page.
http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-to
olkit-incubator&t=ScrollTable

4- Enable columnResizePolicy using the following line in the onModuleLoad
method:
scrollTable.setResizePolicy(ScrollTable.ResizePolicy.UNCONSTRAINED);

Hopefully using the test case you have generously provided, what steps will
reproduce the problem? 
1. Run the application in the Web Mode, and open the main page with FireFox
browser. In default locale (English RTL), everything will work fine.

2. Switch to Arabic locale by adding the following String to the end of the
main page URL:
?locale=ar_sa

3. Implicitly all widgets will be switched to RTL direction, but when
trying to resize any column, it's still working in the same direction as
LRT. It means that, the Column's resize cursor will appear at the start of
the Cell not the end (because the first in RTL is the end in LTR) and when
moving the cursor to right, the column's width will be increased to Left!!!

What is the expected output? What do you see instead?
The resize cursor should appear at the end of the Cell (in LTR it's the
right and in RTL it's the left). 
Instead, in both cases it appears at the right size which is not correct.
Also the moving resize direction, in LTR the mouse should move to right to
increase the column's width in the right direction, and it should move to
left to decrease the column's width in the left direction. The same should
happen in the RTL direction. The mouse should move to left to increase the
column's width and should move to right to decrease it. 
Instead, in RTL locale, moving the mouse to right will increase the width
in the opposite direction, while moving the mouse to left will decrease the
width in the opposite direction

Workaround if you have one:

Please provide any additional information below,  and thank you for taking
the time and effort to report this issue, as good issue reports are
critical for our quest to make GWT's new widgets and libraries shine.

Original issue reported on code.google.com by moustafa...@gmail.com on 14 Dec 2008 at 5:48

GoogleCodeExporter commented 9 years ago

Original comment by ecc%google.com@gtempaccount.com on 7 Jan 2009 at 4:48

GoogleCodeExporter commented 9 years ago
committed as r1517

Original comment by jlaba...@google.com on 18 Feb 2009 at 10:22