Opened 11 years ago

Closed 10 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:


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: 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 11 years ago by AzaToth

This is probably depending on though perhaps keep this one open until it's resolved "upstream"

comment:2 Changed 10 years ago by andri

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 10 years ago by Scott González

Resolution: worksforme
Status: newclosed

The element needs to be visible before you try to position it.

Note: See TracTickets for help on using tickets.