jQuery.position() on Invisible Elements fails
Posted by: Rick Strahls WebLog,
on 20 Sep 2008 |
View original | Bookmarked: 0 time(s)
Ah, just ran into a tricky issue with jQuerys .position() function. position() returns the top and left position relative to its offset parent. For absolutely positioned elements in most cases this allows you retrieve the document relative position of the element to get an absolute page relative position. I use this function in many places of my internal library to move things around and resize them its a handy function that Im glad was integrated into the jQuery core. So to retrieve the current...