Closed Bug 392026 Opened 12 years ago Closed 12 years ago
Bounding Client Rect returns different value than IE when scrolled
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a7) Gecko/2007080210 GranParadiso/3.0a7 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a7) Gecko/2007080210 GranParadiso/3.0a7 Gran Paradiso (Alpha 7) implements getBoundingClientRect differently than Internet Explorer, regarding behavior when the page is scrolled. IE's rect.top value is relative to the top of the viewport (visible section of the page). Gran Paradiso's rect.top value is relative to the top of the page itself. This can easily be seen if you scroll this page in IE so that the link is nearer to the top. It's rect.top value changes. Gran Paradiso's does not. This may also occur with horizontal scrolling, though that doesn't affect us as much. Reproducible: Always Steps to Reproduce: See the attached file. Test in IE and Gran Paradiso. 1. Click the demonstration link without scrolling. IE and GP return similar things. 2. Scroll the window so that the link is very close to the top. 3. Click the link again. IE and GP return very different results. Actual Results: GP's value is always the same. IE's changes. Expected Results: I'd expect the behavior to be equivalent to IE's.
I can confirm this problem.
I fixed this a while ago.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.