views:

505

answers:

2

I've had an intermittent problem that I thought was due to un-cleared floats. What happens in Chrome (my main development browser) is the vertical scrollbar will lock in the top position and I cannot scroll down the page. Initially when the page starts to load it will allow you to scroll and then when the page is loaded it will jump back to the beginning and lock itself.

I've just been ripping apart my pages looking for un-cleared floats and missing tags and finally found out that it is due to a URL having a # at the end (which gets programatically added and remains when I refresh the page).

This issue only happens in chrome - does not appear to happen in other webkit browsers.

I assume its looking for an anchor and not finding it and then giving up. Its definitely a bug but was wondering about a workaround, or why it is only doing it on my site - I can't duplicate it for instance here.

Shift click the URL to open in new browser:

URL that will lock : /faq#

URL that doesn't lock (same but without the #): /faq

A: 

I'm experiencing the exact same problem. I already figured out myself that it is due to the # too. I'm also running Windows 7. Maybe that's the problem?

Grsm
i doubt that its windows 7, but i'm glad its not just me! i guess the solution is to be very careful to return false from any event handlers to prevent # getting there in the first place. thats all i can offer
Simon_Weaver
you reproduced it with my URL? do you have an additional public URL that fails?
Simon_Weaver
No.. i reproduced it with a website of my own on localhost
Grsm
A: 

okzz i was in the same problem last week... but GOT IT SOLVED... may be a coincidence or something but it was in a popup div's style.... i had to make sure a div with z-index and no float but surrounded by floating divs was to be given a float none and definate width... a float was not initially needed as it was position absolute. i have a thread that was... this one.

Achshar
thanks for this. thought i was alone. i've pretty much eliminated # by making sure to always return false - i'll try this out too though just in case i forgot one
Simon_Weaver

related questions