Closed
Bug 392026
Opened 17 years ago
Closed 16 years ago
getBoundingClientRect returns different value than IE when scrolled
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mike, Unassigned)
Details
Attachments
(1 file)
1.55 KB,
text/html
|
Details |
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.
Reporter | ||
Comment 1•17 years ago
|
||
Comment 2•17 years ago
|
||
I can confirm this problem.
I fixed this a while ago.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•11 years ago
|
Component: DOM: Mozilla Extensions → DOM
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•