[patch][ccla] RTL/FF3: Call to dojox.html.metrics.getTextBox() results in Horizontal Scroll Bar appearing
Reported by my co-worker:
The Dojo call returns the text box size by rendering the content 10000px off to the left side of the screen. In LTR,
this is rendered in negative coordinate space, and as such is in non-displayable space. However in RTL with the coordinate
system reversed, this is now considered a positive shift and is still visible space, and as a result the scroll bars
appear, and you can scroll to the rendered DOM object. The fix is to either render it to the Right for RTL, or renter
it 10000 beyond the top in both cases.
Testcase coming + patch
Assigning to Eugene since this code came from GFX and want his take on it
Change History (9)
Owner: |
changed from uhop to Eugene Lazutkin
|
Cc: |
bidi added
|
Milestone: |
tbd →
1.4
|
Summary: |
RTL/FF3: Call to dojox.html.metrics.getTextBox() results in Horizontal Scroll Bar appearing →
[patch][ccla] RTL/FF3: Call to dojox.html.metrics.getTextBox() results in Horizontal Scroll Bar appearing
|
Owner: |
changed from Eugene Lazutkin to Jared Jurkiewicz
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
Testcase in RTL mode demonstrating horizontal scroller.