Connecting Tech Pros Worldwide Forums | Help | Site Map

scroll bar is missing while resizing

Newbie
 
Join Date: Jul 2007
Posts: 4
#1: Jul 25 '07
Hi,
I am resizing my frame height according to the window content length but some time the scroll bar is missing, this is happening randomly, any help is greatly appreciated.
Thanks in advance

hyperpau's Avatar
Expert
 
Join Date: Jun 2007
Posts: 177
#2: Jul 26 '07

re: scroll bar is missing while resizing


Quote:

Originally Posted by pksa

Hi,
I am resizing my frame height according to the window content length but some time the scroll bar is missing, this is happening randomly, any help is greatly appreciated.
Thanks in advance

if your frame is set with the scroll bars as automatic, then it would disappear if the ocntent of the page does not exceed the size of the frame. If you want this to always show, change the scroll bar setting to true.
Newbie
 
Join Date: Jul 2007
Posts: 4
#3: Jul 31 '07

re: scroll bar is missing while resizing


hi,
Thanks for your reply. I think I asked question wrong. I am resizing my I frame height using below javascript, calling it on the onLoad of iframe.
function calculateHeight()
{
document.getElementById('waitResults').height = 100;
//find the height of the internal page
var the_height=
document.getElementById('waitResults').contentWind ow.document.body.scrollHeight;

//change the height of the iframe
document.getElementById('waitResults').height=the_ height;
}

But some time the value of the_height is less than the real value and because of the I some of the data on page is not able to seen by user. Some time I am getting the correct value and that time my page looks fine.

I greatly appreciate your help.
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,566
#4: Jul 31 '07

re: scroll bar is missing while resizing


Then this is a javascript question and I'll transfer you there.
Reply


Similar JavaScript / Ajax / DHTML bytes