How to detect if scrollbar is showing

K

Kristian

I'm including an application into a customer website using an iframe.
Some of the pages have a scrollbar since their height expands the
height of the iframe.

My problem is, I need to resize the width of my layout if a page in
the application uses a scrollbar, some of the pages show lists of
search results so I do now know the pages the expand the iframe height
up front.

How can I detect if the scrollbars are showing inside me page?
 
K

kaeli

replace-this- said:
I'm including an application into a customer website using an iframe.
Some of the pages have a scrollbar since their height expands the
height of the iframe.

My problem is, I need to resize the width of my layout if a page in
the application uses a scrollbar,

Then your page wasn't designed very well.
Design it properly. Besides, what if the user increases the font size? That
would then destroy your absolute widths as well.

As to the actual question, I don't believe there IS a way to detect that in a
cross-browser manner.

--
--
~kaeli~
Why do they lock gas station bathrooms? Are they afraid
someone will clean them?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top