Thursday, August 5, 2004

Update: overflow:auto in Mozilla

If you want the page to scroll when the scrolling-enabled DIV has nothing to scroll you'll have to wrap the contents of the scrollMe function into the following if statement:



function scrollMe(event)
{
if (event.currentTarget.scrollHeight >
event.currentTarget.offsetHeight) {
// ...
}
}

Have fun!

No comments:

Post a Comment