-
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.
Merge pull request #106 from telerik/scroll-bug-from-top
fix: Incorrect scroll offset on initial page load and when starting from the top
- Loading branch information
Showing
4 changed files
with
19 additions
and
4 deletions.
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
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 = 100; | ||
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); |