Ticket #5387 (closed bug: invalid)
$(window).scrollLeft() function breaking in IE8 (8.0.6001.18702)
|Reported by:||dsarosi||Owned by:||dsarosi|
The $(window).scrollLeft() function breaks under the latest update for IE8.
When the dir attribute of the body is set to rtl and the window is minimized, which means that $(window).width() < $(document).width(), the horizontal scrollbar appears. Yet when the scrollbar is on the right, scrollLeft() retunrs 0, while when it's on the left, it returns the difference between window width and document width. This funciton is having an impact jquery draggable, when it's set to autoscroll. When dragging to the left, the scrollbar will scroll to the right, and vice versa.
I was only able to reproduce this issue on that version of IE8. I tried the version on http://spoon.net/browsers which is 8.0.6001.18372. However that version has problems rendering the scrollbar for rtl-minimized pages. Maybe the fix applied to that version breaks the scrollLeft feature.