mdbook/tests/gui
Eric Huss 59017ea918 Fix sidebar scroll position when heading nav is involved
This fixes an issue where the sidebar was scrolling incorrectly when
clicking on chapters when a heading nav is currently in view. The
problem was that it was storing the scrollTop of the sidebar, but it was
not considering that when navigating to another chapter that the heading
nav of the previous chapter would disappear.

The solution is to keep of an offset instead so that it can make sure
that the vertical position of the clicked chapter stays in the same
relative position when the new page loads.

Fixes https://github.com/rust-lang/mdBook/issues/2967
2025-12-11 11:13:47 -08:00
..
books Fix sidebar scroll position when heading nav is involved 2025-12-11 11:13:47 -08:00
heading-nav-collapsed.goml Fix heading nav depth 2025-11-19 17:06:49 -08:00
heading-nav-current-to-bottom.goml Move heading-nav gui tests to a dedicated book 2025-10-15 07:00:35 -07:00
heading-nav-empty.goml Move heading-nav gui tests to a dedicated book 2025-10-15 07:00:35 -07:00
heading-nav-filter.goml Fix avoiding the mark header in the sidebar nav 2025-10-21 17:19:00 -07:00
heading-nav-folded.goml Fix heading nav with folded chapters 2025-10-20 17:31:40 -07:00
heading-nav-large-intro.goml Fix heading nav with folded chapters 2025-10-20 17:31:40 -07:00
heading-nav-markup.goml Fix heading nav with folded chapters 2025-10-20 17:31:40 -07:00
heading-nav-normal-intro.goml Fix heading nav with folded chapters 2025-10-20 17:31:40 -07:00
heading-nav-unusual-levels.goml Rework the look of the header navigation 2025-10-21 16:06:17 -07:00
help.goml Add a basic book for GUI tests 2025-10-15 07:00:35 -07:00
highlighting.goml Add a syntax-highlighting GUI test 2025-10-15 07:00:35 -07:00
move-between-pages.goml Add a general-purpose summary GUI book 2025-10-15 07:00:35 -07:00
redirect.goml Move redirect gui tests to its own book 2025-10-15 07:00:35 -07:00
runner.rs Simplify GUI runner 2025-10-15 14:05:23 -07:00
search.goml Add a gui test book for search 2025-10-15 07:00:35 -07:00
sidebar-active.goml Add a general-purpose summary GUI book 2025-10-15 07:00:35 -07:00
sidebar-nojs.goml Add a basic book for GUI tests 2025-10-15 07:00:35 -07:00
sidebar-scroll.goml Fix sidebar scroll position when heading nav is involved 2025-12-11 11:13:47 -08:00
sidebar.goml Add a general-purpose summary GUI book 2025-10-15 07:00:35 -07:00
theme.goml Add a general-purpose summary GUI book 2025-10-15 07:00:35 -07:00