Skip to content

Commit b302937

Browse files
committed
fix: Incorrect scroll offset on initial page load and when starting from the top
1 parent eb33cd7 commit b302937

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

_assets/js/api-toc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $(function () {
1313
if (!!initialHash) {
1414
setTimeout(function(){
1515
animateScrolling(initialHash);
16-
}, 100);
16+
}, 200);
1717
}
1818

1919
$("#markdown-toc")

_assets/js/toc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ $(function() {
5858
if (!!initialHash) {
5959
setTimeout(function(){
6060
animateScrolling(initialHash);
61-
}, 100);
61+
}, 200);
6262
}
6363

6464
// animated scroll

_assets/js/top-menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var HEADER_HEIGHT = 100;
1+
var HEADER_HEIGHT = 81;
22
var TELERIKBAR_HEIGHT = 70;
33
var NAVBAR_HEIGHT = 76;
44
var SCROLLSPY_OFFSET = TELERIKBAR_HEIGHT + 10; // 10 compensates for the space above the anchored heading

0 commit comments

Comments
 (0)