Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

chore(docs-app): fix vertical scrolling offset after recent re-design #15945

Closed

Conversation

gkalpak
Copy link
Member

@gkalpak gkalpak commented Apr 27, 2017

Previously, the yOffset pointed to the <header> element, which had a height
of 0 (since all its children have fixed positions). This caused scrolled items
to have 0 vertical offset, essentially hiding the top part behind the static
<nav> items.
This commit fixes the vertical scrolling offset, by setting yOffset to the
last (lowest) <nav> item.

Previously, the `yOffset` pointed to the `<header>` element, which had a height
of 0 (since all its children have fixed positions). This caused scrolled items
to have 0 vertical offset, essentially hiding the top part behind the static
`<nav>` items.
This commit fixes the vertical scrolling offset, by setting `yOffset` to the
last (lowest) `<nav>` item.
@gkalpak gkalpak closed this in f90b48d Apr 27, 2017
@gkalpak gkalpak deleted the chore-docs-app-fix-scrolling-offset branch April 27, 2017 14:14
gkalpak added a commit that referenced this pull request Apr 27, 2017
Previously, the `yOffset` pointed to the `<header>` element, which had a height
of 0 (since all its children have fixed positions). This caused scrolled items
to have 0 vertical offset, essentially hiding the top part behind the static
`<nav>` items.
This commit fixes the vertical scrolling offset, by setting `yOffset` to the
last (lowest) `<nav>` item.

Closes #15945
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants