diff options
| author | fat <[email protected]> | 2012-12-19 22:37:41 -0800 |
|---|---|---|
| committer | fat <[email protected]> | 2012-12-19 22:37:41 -0800 |
| commit | e9eff0cbffdd4381ee990e6fc78bee6caec92a00 (patch) | |
| tree | d192fdb05da7fee0c90ad9289a9f4313a6ab2f45 /docs/assets | |
| parent | 96e5fa6143072db64f34482873c6f7d6b3ec4ffd (diff) | |
| download | bootstrap-e9eff0cbffdd4381ee990e6fc78bee6caec92a00.tar.xz bootstrap-e9eff0cbffdd4381ee990e6fc78bee6caec92a00.zip | |
wait 100ms before engaging affix (allows for initial browser scroll)
Diffstat (limited to 'docs/assets')
| -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 1f7282b66..ba7767300 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() |
