Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs functions anchors not jumping all the way to the definition #28859

Open
mathjeff opened this issue Apr 17, 2024 · 1 comment
Open

Docs functions anchors not jumping all the way to the definition #28859

mathjeff opened this issue Apr 17, 2024 · 1 comment

Comments

@mathjeff
Copy link
Contributor

Current Behavior

I'm noticing on docs.gradle.org that when I click on a function name and it jumps to the definition of the function, it doesn't quite jump all of the way to the detailed function documentation - instead the page scrolls slightly above it.

For example, when I go to https://docs.gradle.org/8.7/javadoc/org/gradle/api/Project.html and click on findProperty (a couple of times because of #28858 ), I see this:

findPropertyInitialScroll

Expected Behavior

I think it would be easier to read if clicking on a function name would scroll that function to the top of the screen

Context (optional)

No response

Steps to Reproduce

  1. Go to https://docs.gradle.org/8.7/javadoc/org/gradle/api/Project.html
  2. Click on findProperty a couple of times
  3. Notice that the screen is scrolled slightly higher than the detailed documentation for findProperty

Gradle version

Docs version 8.7

Build scan URL (optional)

No response

Your Environment (optional)

I'm using Google Chrome version 123.0.6312.105 (Official Build) (64-bit)

Thanks!

@ov7a
Copy link
Member

ov7a commented Apr 18, 2024

Can confirm. And it happens in other browsers too.
The size of the gap is visually similar to the header size, I think it's related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants