Next in thread →
Next in month →
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: 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
------------------------------------------------------------------
Next in thread →
Next in month →