Closed Bug 476829 Opened 15 years ago Closed 14 years ago

scrollLeft property on a single-line text box doesn't work

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 293186

People

(Reporter: timwi, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 (.NET CLR 3.5.30729)

As far as I can tell, scrollLeft always returns 0 for a simple <input type='text'>, and setting it to any value has no effect.

That makes it impossible to scroll such a textbox using JavaScript.

Interestingly, scrollWidth and scrollHeight return correct values.

Reproducible: Always

Actual Results:  
For a simple <input type='text'>, scrollLeft returns 0, assigning scrollLeft has no effect

Expected Results:  
scrollLeft returns current scroll position, assigning scrollLeft changes scroll position
Looks like a bug 293186. Please see the comments.
in the absence of timwi response, trusting jhorak.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.