diff options
author | fat <jacobthornton@gmail.com> | 2012-12-20 10:37:41 +0400 |
---|---|---|
committer | fat <jacobthornton@gmail.com> | 2012-12-20 10:37:41 +0400 |
commit | e9eff0cbffdd4381ee990e6fc78bee6caec92a00 (patch) | |
tree | d192fdb05da7fee0c90ad9289a9f4313a6ab2f45 /docs | |
parent | 96e5fa6143072db64f34482873c6f7d6b3ec4ffd (diff) |
wait 100ms before engaging affix (allows for initial browser scroll)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/assets/js/application.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 1f7282b666..ba77673000 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -14,12 +14,14 @@ }) // side bar - $('.bs-docs-sidenav').affix({ - offset: { - top: function () { return $window.width() <= 980 ? 290 : 210 } - , bottom: 270 - } - }) + setTimeout(function () { + $('.bs-docs-sidenav').affix({ + offset: { + top: function () { return $window.width() <= 980 ? 290 : 210 } + , bottom: 270 + } + }) + }, 100) // make code pretty window.prettyPrint && prettyPrint() |