[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] [WebHelp] Incorrect initial scroll to anchor in Chrome
On 27.10.2014 19:04, Jan Tosovsky wrote: > This seems to be caused by the following script located in the main.js file: > > var hash = window.location.hash; > if (hash) { > var targetOffset = $(hash).offset().top - 120; > $('html,body').animate({scrollTop: targetOffset}, 200); > return false; > } Could you try replacing $('html,body') with $('#content'). I recall that there were some problems related to former selector, but I'm not sure whether this will help here. Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesionální školení a poradenství v oblasti technologií XML. Podrobný přehled školení http://xmlguru.cz/skoleni/ ------------------------------------------------------------------ http://docbook.cz Stránky o dokumentačním formátu DocBook http://xmlguru.cz Blog mostly about XML for English readers ------------------------------------------------------------------
Attachment:
signature.asc
Description: OpenPGP digital signature
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]