aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorfat <[email protected]>2012-12-19 22:37:41 -0800
committerfat <[email protected]>2012-12-19 22:37:41 -0800
commite9eff0cbffdd4381ee990e6fc78bee6caec92a00 (patch)
treed192fdb05da7fee0c90ad9289a9f4313a6ab2f45 /docs
parent96e5fa6143072db64f34482873c6f7d6b3ec4ffd (diff)
downloadbootstrap-e9eff0cbffdd4381ee990e6fc78bee6caec92a00.tar.xz
bootstrap-e9eff0cbffdd4381ee990e6fc78bee6caec92a00.zip
wait 100ms before engaging affix (allows for initial browser scroll)
Diffstat (limited to 'docs')
-rw-r--r--docs/assets/js/application.js14
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()