[Dojo-checkins] [dojo] #10433: RTL/FF3: Call to dojox.html.metrics.getTextBox() results in Horizontal Scroll Bar appearing

dojo trac at dojotoolkit.org
Mon Nov 30 14:35:46 EST 2009


#10433: RTL/FF3: Call to dojox.html.metrics.getTextBox() results in Horizontal
Scroll Bar appearing
--------------------+-------------------------------------------------------
 Reporter:  jaredj  |       Owner:  uhop                          
     Type:  defect  |      Status:  new                           
 Priority:  normal  |   Milestone:  tbd                           
Component:  Dojox   |     Version:  1.3.2                         
 Severity:  normal  |    Keywords:  getTextBox, dojox.html.metrics
--------------------+-------------------------------------------------------
 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

-- 
Ticket URL: <http://bugs.dojotoolkit.org/ticket/10433>
dojo <http://dojotoolkit.org/>
The Dojo UI Toolkit


More information about the Dojo-checkins mailing list