docs icon indicating copy to clipboard operation
docs copied to clipboard

Section anchor links opened from an external source does not scroll properly

Open rcjsuen opened this issue 9 years ago • 7 comments

Problem description

If you open a #section link in the Dockerfile reference page from an external page, the page doesn't scroll properly. Clicking the section links when you're already on the page is fine though.

Problem location

  1. Open this link: https://docs.docker.com/engine/reference/builder/#arg
  2. Notice that you ultimately end up in: https://docs.docker.com/engine/reference/builder/#user ARG isn't even visible here.
  3. Open this link: https://docs.docker.com/engine/reference/builder/#env
  4. Notice that you ultimately end up in: https://docs.docker.com/engine/reference/builder/#maintainer-deprecated But at least you can see ENV at the bottom.

Zooming in your browser (via Ctrl++ or whatever) will make the problem even more noticeable as it pushes even more content further down the page.

rcjsuen avatar Mar 08 '17 20:03 rcjsuen

This seems to be mostly fixed but in FF 52 on OS X 10.11.6 it still happens when you change the anchor in the URL bar and hit enter. It works on page load and on navigation bar clicking but not on in-page manual navigation. It may also be using JavaScript so I'm not sure how degraded the experience is for NoScript users or if we care about them (requiring JS to read docs seems a bit OTT but maybe there is a policy).

dsheets avatar Apr 21 '17 15:04 dsheets

Can repro in Firefox. Chrome and Safari are fine.

johndmulhausen avatar Aug 28 '17 23:08 johndmulhausen

@jsouth care to take a crack?

mdlinville avatar Feb 02 '18 23:02 mdlinville

@mistyhacks - Apologies for delayed response. For sure, i'll see if I can remedy this. :)

jsouth avatar Feb 08 '18 00:02 jsouth

I can reproduce @dsheets experience with:

  • FF 59
  • FF nightly
  • Chrome latest

joaofnfernandes avatar Apr 02 '18 17:04 joaofnfernandes

Cannot reproduce issue; fixed in recent build. Closing ticket.

ghost avatar Dec 04 '18 16:12 ghost

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

docker-robott avatar Mar 07 '23 03:03 docker-robott