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 c4169cb commit 562ebd7Copy full SHA for 562ebd7
doc/api_assets/api.js
@@ -187,6 +187,16 @@
187
});
188
}
189
190
+ function scrollIntoViewWithActiveLink() {
191
+ const activeLInk = document.querySelector('.interior ul .active');
192
+ if (activeLInk) {
193
+ activeLInk.scrollIntoView({
194
+ behavior: 'smooth',
195
+ block: 'center'
196
+ });
197
+ }
198
199
+
200
function bootstrap() {
201
// Check if we have JavaScript support.
202
document.documentElement.classList.add('has-js');
@@ -206,6 +216,8 @@
206
216
setupFlavorToggles();
207
217
208
218
setupCopyButton();
219
220
+ scrollIntoViewWithActiveLink();
209
221
210
222
211
223
if (document.readyState === 'loading') {
0 commit comments