Scroll returns to default after display:none in Chrome/IE

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2011-01-03T07:15:14Z Indexed on 2011/01/03 8:53 UTC
Read the original article Hit count: 192

Filed under:
|
|
|
|

Here's the example: http://jsfiddle.net/sammy/RubNy/

Scroll down in the div container. Then click anywhere in the window to hide the element. Then click once more to show the element. You'll notice in Chrome/IE that the scroll is reset, but in Firefox, the scroll remains how you left it.

Which is the standards behavior, Chrome/IE or Firefox? Should I report this to the Chrome issue tracker?

Thanks in advance for any help on this, and happy new year, and thanks again, and cheers, and stuff. =D

© Stack Overflow or respective owner

Related posts about css

Related posts about scrolling