Opened 12 years ago
Closed 12 years ago
#7496 closed bug (worksforme)
Set Offset doesn't work correctly if page is scrolled
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | 1.5 |
Component: | unfiled | Version: | 1.4.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Elements positioned with offset appear to be positioned to the viewport instead of to the document. So $(element).offset({left: 100, top: 100}) would position the element at top: 200 if the page was scrolled by 100 pixels.
Change History (3)
comment:1 Changed 12 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 12 years ago by
Scratch that...I did some more testing and it's not that simple. It is doing what I reported, but I'm not sure how to reproduce it...
comment:3 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | pending → closed |
Note: See
TracTickets for help on using
tickets.
Thanks for contributing to the jQuery project. I've created a jsFiddle for the use case you're describing but can't reproduce the problem. http://jsfiddle.net/boushley/hMCDb/1/ I'm testing this on Google Chrome on a Mac, if you could provide a reproducible test case that would be great.