We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent defccdf commit 08d3e30Copy full SHA for 08d3e30
doc/api_assets/api.js
@@ -187,12 +187,17 @@
187
});
188
}
189
190
+ /**
191
+ * Scrolls the active link into view, centering it in the viewport.
192
+ * This is useful for documentation pages where the active link should be visible
193
+ * when the page loads or when navigating to a section.
194
+ */
195
function scrollIntoViewWithActiveLink() {
196
const activeLInk = document.querySelector('.interior ul .active');
197
if (activeLInk) {
198
activeLInk.scrollIntoView({
199
behavior: 'smooth',
- block: 'center'
200
+ block: 'center',
201
202
203
0 commit comments