scrollTop in select list is always 0

It is not possible to obtain the correct scrollTop value of a select list in Explorer, regardless of strict/quirks mode. to reproduce, enter the test page, scroll the list a bit, then hit the button. The alert will display 0 value in IE, and correct value in Mozilla based browsers.

Test page Workaround is not included
Reported by: Omry Yadan.

(Orphaned), Explorer 5-6 Windows, Explorer Mac, Safari | Reported on 16 February 2006.

Atom RSS

This site heavily relies on bug reports created by its readers. Anyone can report a bug and be published.

Main navigation:

Search reports by browser:


(Add your own)

1 Posted by Thomas on 16 February 2006

Well, in IE7b2 it's working all fine.

2 Posted by Tino Zijdel on 17 February 2006

In IE7 the select-element is a native control instead of a windowed control rendered by the windows shell. Obviously the latter had some shortcomings such as being always on top of other HTML elements and this issue with scrollTop not being available.
Workaround would probably be nesting the select-element in another element and obtain that element's scrollTop.

3 Posted by Jon Watson on 9 November 2006

This error occurs in IE7 when getting the scrollTop for a window element like the top window or any iframe.

Post a comment

Commenting guidelines:

  1. When quoting specs, articles or your own research, please include a URL of the document.
  2. Test your stuff. When reporting browser behaviour, make sure that your report is correct.