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

Fix JUMP TO #1713

Merged
merged 7 commits into from
May 9, 2017
Merged

Fix JUMP TO #1713

merged 7 commits into from
May 9, 2017

Conversation

mparke
Copy link
Contributor

@mparke mparke commented May 8, 2017

closes #1670

Fixes JUMP TO links and adds ids to methods

@mparke mparke mentioned this pull request May 8, 2017
Copy link
Member

@abemassry abemassry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently reviewing

@abemassry abemassry dismissed their stale review May 8, 2017 20:24

Done reviewing

docs/src/App.js Outdated
const id = hash.replace('#', '');
const element = document.getElementById(id);
if (element) {
element.scrollIntoView();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

window.scrollBy(0, -60); afterward?

@eatonphil
Copy link
Contributor

Made a PR to your branch with minor enhancements mparke#16

docs/src/App.js Outdated
export function init() {
setTimeout(() => hashLinkScroll(), 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, missed it: setTimeout(hashLinkScroll, 0)

@na3d na3d merged commit 815445a into linode:master May 9, 2017
mparke pushed a commit to mparke/manager that referenced this pull request May 16, 2017
* Fix JUMP TO

* use var

* Account for header in scroll and scroll to section not header

* remove uneeded function

* Call without timeout

* Use scrollTop and offsetHeight instead
mparke pushed a commit to mparke/manager that referenced this pull request May 17, 2017
* Fix JUMP TO

* use var

* Account for header in scroll and scroll to section not header

* remove uneeded function

* Call without timeout

* Use scrollTop and offsetHeight instead
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

Successfully merging this pull request may close these issues.

4 participants