JQuery Layout cookies scroll problem -


I'm having a very awkward problem with the jQuery layout, maybe someone has solved before ... sometimes , The whole screen is scrolled, this means that the lower line in the browser now appears between the middle of the screen (more or less). After that, every time I refresh (CTR-R) the screen scrolls the scroll.

I have tried to remove cookies and refresh and the problem is missing. So I think that the problem definitely disappears, if Jquery Layout Cookies ( useStateCookie: false ) is disabled, but the problem persists ...

Sorry, I can not give you the JSFiddle demo, because any ideas even in my own system is difficult to reproduce?

I have seen it before, but do not know whether you have the same problem This is the reason for you! Surely it does not understand why this will affect the cookies I have tracked down on the scroll intro JavaScript function.

  ScrollToId (id) function {elm = document.getElementById (id); Elm.scrollIntoView (); } In our case, Edi will have a div for an error message, which was at the top of the main body section of the page (below a non-scrolling menu bar, and a non- Scrolling above the status bar).  

With your problem, just once in a while it all went wrong, and scrolling non-scrolling elements from the top of the page, such as error div was the new top page. Left a generic fix and replaced it with a more rigid version, which scrolls to a specific page element:

  function scrolltorrows () {$ ('# div_inside_body'). ScrollTop (0); }    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -