Brandon, >Could you send me some example code of the problem you are having? I >can't reproduce the issue you describe. Which browser is it in? The >offset method goes to great lengths to squash browser inconsistencies >with getting the offset of an element and there are lots of them. I'm >sure I've missed a few so if you find any issues, just shoot me an >email or open a ticket. I can usually get it worked out pretty >quickly.
Ok, my original description may not have been a very accurate description of the issue. The link below shows off the "issue": http://www.pengoworks.com/workshop/jquery/dimension.htm When you click button, it sets the following CSS properties: position: absolute; top: 0px; left: 0px; One might expect the Cell 2 to go to the top/left of the screen, but instead it goes to the top/left of the first parent w/a relative position. So, in order to place the element at the top/left of the screen, you'd need to offset the element w/the position of the parent w/the relative position. NOTE: You can do this by setting the Cell2 element to relative and moving to the top/left offset multiple by negative 1. However, in my case I need to move the position to absolute position. In the plug-in I was working on, I need to center an element to the viewpoint and change it's positioning to absolute. Because the element was contained in a relative div, I need to do some negative offsetting to find the true top/left of the viewpoint. So what I ended up doing is going through the parents() and looking for elements with an relative positioning and then adjusting my element accordingly. Hopefully this illustrates the problem clearly. -Dan