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 scroll position for cross references links #813

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions theme/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,11 @@ $(document).ready(function () {
});
}
setHighlighterWidth();

// Assign the CSS class "section" for Ledger API reference doc spans.
// This fixes a problem with clicking on internal links in the Ledger API reference docs.
// The scroll position, after clicking a link, was behind the nav bar.
$("span[id^=com-daml-ledger-api-v]").addClass("section");
});

$(window).resize(function () {
Expand Down