Jump to content

Width Error.


shadowayex

Recommended Posts

I know it's not a W3C standard, but I use offsetWidth/offsetHeight on a project I'm working on. Well, it works in most cases, except when a JavaScript function is used to change the content and a scroll bar is added. What happens is a JavaScript function is used to hide and show certain content and at one specific point in time, a scroll bar is added, and the width needs to be shortened to compensate.Is there a JavaScript function that can detect if there are scroll bars so I may adjust the width accordingly?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...