Click to See Complete Forum and Search --> : window-shift in IE5 when scrolling layer content: Bug? Solutions?


Greenlander
06-10-2003, 04:37 PM
Hi all,
here's the page I'm talking about:

www.hinrichsen.com/!portfolio/en/10-content.htm (http://www.hinrichsen.com/!portfolio/en/10-content.htm)

If you resize your browser widonw to a small height, you'll see 2 scrollbars: The first one (from the left) is for the content layer which will be scrolled by calling anchor tags within the layer content. The second one is for the whole window and would disappear if the page was opened as a frame within a frameset. Right now, it shows the different behaviors of NS6 and IE5:

In NETSCAPE 6, everything is fine. You click on the last menu item in the right column (which is seperate layer) and the content layer on the left scrolls WITHOUT scrolling the window itself (the right scrollbar doesn't change)... Perfect.

BUT: In IE5, as soon as an anchor tag within the content layer is called, not only that layer scrolls but ALSO THE WHOLE WINDOW! (You can see that everything shifts upwards and that the right scrollbar moves) ... As long as this is a single window, this is just ugly-- but when used as a frame with autoscrolling off, it becomes impossible to control and a real problem!

Any ideas on how I could prevent IE5 from scrolling the f%$&ing window? :-) All suggestions (and code snippets) are greatly appreciated!

cheers,
GL

I'm posting this as a new thread because my earlier post was about a related but different question (and a stupid one, too) :-)