-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Incorrect scroll offset in the docs API section and inner pages …
…with breadcrumbs
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
var HEADER_HEIGHT = 81; | ||
var TELERIKBAR_HEIGHT = 70; | ||
var NAVBAR_HEIGHT = 76; | ||
var BREADCRUMBS_HEIGHT = 20; | ||
var API_SCROLL_FIX = 40; | ||
var SCROLLSPY_OFFSET = TELERIKBAR_HEIGHT + 10; // 10 compensates for the space above the anchored heading | ||
var FOOTER_DISTANCE = 20; | ||
var windowHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); |