At 2001-06-27 16:14, you wrote:
>I'm working on a site with drop-down menus which are right-aligned at the
>top of the screen, and my main problem right now is that whenever the page
>is longer than the window, causing there to be scroll bars, Netscape 4.x
>returns the wrong document width, going to the edge of the window instead of
>going to the edge of the scrollbar. Does anybody have any ideas for good
>workarounds? Also, right now I've got it completely disabled in
>Mozilla/Netscape 6 since getContentWidth() doesn't seem to work properly...
>
>Ethan Bowker
>Informatics Corp.
>[EMAIL PROTECTED]
You could try these (I could have named the functions "ns4RealXxxx" but that would be
too hilarious :-)
function nsInnerWidth()
{
return window.innerWidth - ((document.height>window.innerHeight) ? 16 : 0);
}
function nsInnerHeight()
{
return window.innerHeight - ((document.width>window.innerWidth) ? 16 : 0);
}
(There is a special-case that isn't handled. If you don't notice it you don't need...
otherwise drop me a note.)
/Lunna
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help