Opened 5 years ago

#15253 new bug

Position feature fails with scrolled elements

Reported by: frasese Owned by:
Priority: minor Milestone: none
Component: ui.position Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:


In large pages, when the elements are scrolled, the position feature is not working right.

Example :

  • Two html components : a div container (extra large) and a little square. Actually is the same example that appears as position demo ( but with a big container.
  • Move the square in order to its top-left corner match the top-left corner of the container.
    $( "#square" ).position( {my: "left top", at: "left top", of: "#container"} );
  • When the scroll is at the bottom. The square is moved to the bottom-left side of the container.

JSFiddle here :

Change History (0)

Note: See TracTickets for help on using tickets.