Opened 13 years ago
Closed 13 years ago
#5298 closed bug (worksforme)
ui.position generates wrong position in scrolling environment
Reported by: | AzaToth | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | 1.9.0 |
Component: | ui.position | Version: | 1.8rc3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If by calling position in a scrolling environment, and we have not top of the page in current view, then the generated position shifts upwards by the double amount we have scrolled. Example: http://jsfiddle.net/gf8aS/2/ First click on "click me", the boxes is created correctly, then scroll down one "click" and click again, you'll see they are not at their "absolute" position.
Change History (3)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
I'm not sure if the issue I'm dealing with is the same as AzaToth's, but I can say that 1.8a1 version of jquery.ui.position.js works OK in a similar position:absolute & overflow:scroll <div> situation. On the other hand, 1.8rc1 and the current stable both return wrong top positions.
comment:3 Changed 13 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
The element needs to be visible before you try to position it.
This is probably depending on http://dev.jquery.com/ticket/6237 though perhaps keep this one open until it's resolved "upstream"