Try forcing Moz to use IE's broken box model:

<style>
   P, H1, H2, H3, H4, H5, H6, UL, OL, DIR, MENU, PRE, DL, DIV, CENTER,
NOSCRIPT, NOFRAMES, BLOCKQUOTE, FORM, ISINDEX, HR, TABLE, FIELDSET,
ADDRESS
   {-moz-box-sizing: border-box;}
</style>  

Just a thought.

Dave Cline
~bangeye~

"Tom Robinson" <[EMAIL PROTECTED]> wrote in message 
news:<al5qb3$[EMAIL PROTECTED]>...
> I need to find the precise page location of elements, in order to position
> popups or other effects.
> One recommended method is to recursively total an object's offsetTop and
> offsetLeft, until the object's offsetParent is null, as in:
> 
> function getPageCoords (element) {
>    var coords = {x: 0, y: 0};
>    while (element) {
>      coords.x += element.offsetLeft;
>      coords.y += element.offsetTop;
>      element = element.offsetParent;
>    } return coords;
> }
> 
> This technique has worked fine for me in the past, but Mozilla 1.1 and
> Netscape 7.0b1 fail to include the widths of borders in their totals, so my
> popups appear in the wrong place.
> I reported the bug to Netscape and Mozilla, 2 weeks ago:
> http://bugzilla.mozilla.org/show_bug.cgi?id=163923
> 
> Now that Netscape 7.0 is released, the bug is not fixed, and I must make my
> pages work.
> I can use browser detection and add in a "Netscape 7.0 bug adjustment", but
> I would rather use a standards-compliant approach that will not break again
> in Mozilla 1.2/Netscape 7.1/Opera 7 etc.
> 
> Please try out the sample code, and if you agree it is a problem that should
> be fixed in Mozilla/Netscape, then please vote in Bugzilla and/or send bug
> reports to Netscape.
> 
> Any ideas for workarounds?
> ...Tom

Reply via email to