Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorfat <jacobthornton@gmail.com>2012-12-20 10:37:41 +0400
committerfat <jacobthornton@gmail.com>2012-12-20 10:37:41 +0400
commite9eff0cbffdd4381ee990e6fc78bee6caec92a00 (patch)
treed192fdb05da7fee0c90ad9289a9f4313a6ab2f45 /docs
parent96e5fa6143072db64f34482873c6f7d6b3ec4ffd (diff)
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 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()