On 07/12/06, Brandon Aaron <[EMAIL PROTECTED]> wrote: > On 12/7/06, Sam Collett <[EMAIL PROTECTED]> wrote: > > I am aware of the dimensions plugin, but am interested in trying to do > > this without relying on it. > > Why do you not want to depend on the dimensions.js plugin? Would it > help if the offset method was its own plugin? Doing this without the > offset method and trying to give it wide spread usage is madness. > There are so many browser issues with getting the position of an > element. > > -- > Brandon Aaron
It has been updated to use the dimensions plugin (I am hesitant to use it as it is still in development, and the only way to get it is through svn). However, the positioning is still not right. In fact, IE 7 is actually the closes to what it should display like (just two pixels too far to the right and down). In Firefox it is too far to the left (but only if there isn't a scrollbar, with one it displays like IE) Think of it as a test case for the dimensions plugin. If it worked as intended, I should not have to worry about padding, margins, scrollbars etc - left, top, height should take those into account. It is repositioned if you resize the window, which actually works much more smoothly in IE (the resize event in Firefox only fires when you have finished resizing). Same link as before: http://www.texotela.co.uk/code/jquery/below/ _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
