Tuesday, May 25, 2010

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

Programmer Question

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(). It's a set of buttons top and bottom that handle moving the content.



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 and the buttons are not needed.



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



Any ideas?



TIA



JG



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails