Figuring out if overflow:auto would have been triggered on a div

Posted by jerrygarciuh on Stack Overflow See other posts from Stack Overflow or by jerrygarciuh
Published on 2010-05-25T18:44:11Z Indexed on 2010/05/25 19:21 UTC
Read the original article Hit count: 405

Filed under:
|

Hi folks,

// Major edit, sorry in bed with back pain, screwed up post

One of the ad agencies I code for had me set up an alternate scrolling solution because you know how designers hate things that just work but aren't beautiful.

The scrolling solution is applied to divs with overflow:hidden and uses jQuery's scrollTo().

So, this is married in places to their CMS. What I have not been able to sort yet is how to hide the scrolling UI when overflow:auto would not have been triggered by the CMS content.

The divs have set heights and widths. Can i detect hidden content? Or measure the div contents' height?

Any ideas?

TIA

JG

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about css