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

Incorrect scrolling inside the iframe #7

Open
tvi7hc opened this issue Oct 24, 2024 · 0 comments
Open

Incorrect scrolling inside the iframe #7

tvi7hc opened this issue Oct 24, 2024 · 0 comments

Comments

@tvi7hc
Copy link

tvi7hc commented Oct 24, 2024

The Sphinx Preview extension doesn't scroll to the correct position inside the iframe. It should scroll to the target ID but currently doesn't.

In the assets/template_sphinx_preview.js file, I found that the function scrollToContent uses the anchor tag and href attribute to find the position.

I suggest using the ID directly to find the position inside the iframe because it's unique in the HTML document.

It would be better if there is a configuration to set the scrolling offset inside the iframe.

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

No branches or pull requests

1 participant