RunDMC icon indicating copy to clipboard operation
RunDMC copied to clipboard

TOC rendering issues on guide pages with anchors

Open dsokolsky opened this issue 9 years ago • 4 comments

In some cases, the toc titles overlap the leaf pages. Here is an example:

http://docs.marklogic.com/guide/jsref/api#id_90070

dsokolsky avatar May 27 '15 20:05 dsokolsky

I think the problem here is that the selector is not changing properly to the "Guides" section when you go directly to one of the guide pages, so it shows the guide page overlayed on the Server-Side JavaScript Function page. So maybe a fix is to make sure it properly sets the selector?

dsokolsky avatar May 28 '15 17:05 dsokolsky

@kcoleman-marklogic I wonder if this is the mystery thing you see relatively often. Next time you see this, take a look at the Section selector on the toc and see if it is on the correct selection (ie, on Guides if you are on a guide). That can validate or dispute my theory....

dsokolsky avatar May 28 '15 17:05 dsokolsky

@paxtonhare , this is one I would like to put on your queue to look at when you have some time. Can you add this to your list please? The link above repros it. I think the javascript is scrolling to the right place and then erroneously placing a different toc on top of it.

dsokolsky avatar Feb 04 '16 23:02 dsokolsky

Repro here:

http://docs.marklogic.com/guide/jsref/api#id_90070

dsokolsky avatar Jul 14 '16 00:07 dsokolsky