By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,058 Members | 1,213 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,058 IT Pros & Developers. It's quick & easy.

vertical scrollbar problem in IE

P: n/a
Z
Hi,

I have problem with auto-scrolling frames in IE (6.0 on Xp, but same happens
with IE 5.5 on Win2k):
If I set scrolling="auto" to frame, IE reserves space where vertical
scrollbar normally goes and doesn't render contents there when scrollbar is
hidden.

Here is frameset with left and right frames:

framset.html:
------------
<html>
<frameset cols="200,*" framespacing="0" border="0" frameborder="no">
<frame scrolling="auto" src="left.html" name="menu">
<frame scrolling="auto" src="right.html" name="main">
</frameset>
</html>

------------
left.html:
------------
<html>
<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0
bgColor="#AAFFAA">
<table cellspacing=0 cellpadding=0 width="100%" border=1>
<tr>
<td width="100%" height=500 align=middle>left<td>
</tr>
</table>
</body>
</html>
------------
right.html:
------------
<html>
<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0
bgColor="#FFAAAA">
<table cellspacing=0 cellpadding=0 width="100%" border=1>
<tr>
<td width="100%" height=500 align=middle>right<td>
</tr>
</table>
</body>
</html>

------------

When scrollbars are not visible, there should be no space between frames,
but IE adds blank strip (of scrollbar with) on the right side of each frame.
Opera (7.10) and Mozilla (1.6) render frameset correctly: tables on both
frames stretches to frame with, and when scrollbars goes on (due to browser
resizing) both tables shrink by scrollbar width.

Thanks,
Zoran Perak

Jul 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On Thu, 19 Feb 2004 11:26:40 +0100, "Z"
<zoran.perak@[remove]zg.hinet.hr> wrote:
Hi,

I have problem with auto-scrolling frames in IE (6.0 on Xp, but same happens
with IE 5.5 on Win2k):
If I set scrolling="auto" to frame, IE reserves space where vertical
scrollbar normally goes and doesn't render contents there when scrollbar is
hidden.


It seems to me, that this is not a problem of frames. I have a normal
page, which uses just absolute positioning. My goal was to replace
frames with just css-features to have a page with an application bar
at the top and a scrollable text under it.

This works pretty well on Gecko based browsers and also works on
internet explorer, but internet explorer also draws a second scrollbar
at the right side, but without a slider in it - just the up and down
arrows are shown. This sounds to be the same or a similar problem, as
you have. If I find a solution, I will post it.

--
Martin Doering
Jul 20 '05 #2

P: n/a
Z
Martin,

Thanks.
I agree. It seems that IE reserves place for vertical scrollbar everywhere
where scrollbar is in 'auto' mode (not explicitly shown or hidden).
I am not sure whether it is a bug or a feature but it seems to be consistent
behavior through IE versions.
It seems to me, that this is not a problem of frames. I have a normal
page, which uses just absolute positioning. My goal was to replace
frames with just css-features to have a page with an application bar
at the top and a scrollable text under it.

This works pretty well on Gecko based browsers and also works on
internet explorer, but internet explorer also draws a second scrollbar
at the right side, but without a slider in it - just the up and down
arrows are shown. This sounds to be the same or a similar problem, as
you have. If I find a solution, I will post it.

--
Martin Doering

Jul 20 '05 #3

P: n/a
On Tue, 24 Feb 2004 13:37:58 +0100, "Z"
<zoran.perak@[remove]zg.hinet.hr> wrote:
Martin,

Thanks.
I agree. It seems that IE reserves place for vertical scrollbar everywhere
where scrollbar is in 'auto' mode (not explicitly shown or hidden).
I am not sure whether it is a bug or a feature but it seems to be consistent
behavior through IE versions.


I did find this:

overflow-y: hidden;

at:

http://www.frost-bitten.org/frost-bi...scrollbars.htm

Maybe, it does work for you. I did not have success in my IE6. And it
is not official!

Also there is something about it in:

http://www.mail-archive.com/mo******.../msg02379.html

and possibly this is of use too, its about width/height and
javascript:

http://www.dansteinman.com/dynduo/en/widthheight.html

--
Martin
Jul 20 '05 #4

P: n/a
Also look into the next thread here. Also having a problem with
scrollbars was fixed for me (with IE6) by using these Document types
in my web application, that time I did make use of frames:

For my application bar (the menu at top) frame:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN
"http://www.w3.org/TR/html4/loose.dtd">

and for the text frame under it:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">

Strange, but this did work with Mozilla and IE6. Maybe, it is also the
solution for your frames (I did spend a looooong time, till I got this
working that time...

--
Martin
Jul 20 '05 #5

P: n/a
Z
No, it doesn't work. I guess it deals with showing and hiding scrollbar.

My problem is bit different. IE correctly hides and shows scrollbar. Problem
is only that it reserves space for vertical scrollbar even when it is not
shown.

z
I did find this:

overflow-y: hidden;

at:

http://www.frost-bitten.org/frost-bi...scrollbars.htm

Maybe, it does work for you. I did not have success in my IE6. And it
is not official!

Also there is something about it in:

http://www.mail-archive.com/mo******.../msg02379.html

and possibly this is of use too, its about width/height and
javascript:

http://www.dansteinman.com/dynduo/en/widthheight.html

--
Martin

Jul 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.