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

Update Test page content and add test case for TOC scrollable indicator #155

Merged
merged 1 commit into from Jan 13, 2023

Conversation

bernardwang
Copy link
Collaborator

Summary

  • Updates Test page content by adding a very long heading. This means the TOC sections are now closed by default
  • Add #scroll-toc flag, which expands all the TOC sections and scrolls down to the bottom, showing the scrollable indicator in the case of the pinned TOC

@@ -2,7 +2,7 @@ FROM mariadb:10.6.7

COPY src/seedDb.sh /docker-entrypoint-initdb.d/

ARG database="database_2022-10-07_10-53-14-0600(MDT).tar.gz"
ARG database="database_2023-01-11_12-42-02-0600(CST).tar.gz"
Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome job!

}
tocElement.scrollBy( 0, tocElement.scrollHeight );
// Scroll up 30px from the bottom of the TOC to allow the scrollable indicator to show
tocElement.scrollBy( 0, -30 );
Copy link
Contributor

Choose a reason for hiding this comment

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

We might need to wait a number of frames after the scroll as I noticed that one test failed for me because it seems that the new scroll position hadn't been painted yet [1]

Screen Shot 2023-01-13 at 3 36 32 PM

@nicholasray nicholasray merged commit d83205b into main Jan 13, 2023
@nicholasray nicholasray deleted the bernard/add-test-scrollable-indicator branch January 13, 2023 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants