]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
wait 100ms before engaging affix (allows for initial browser scroll)
authorfat <jacobthornton@gmail.com>
Thu, 20 Dec 2012 06:37:41 +0000 (22:37 -0800)
committerfat <jacobthornton@gmail.com>
Thu, 20 Dec 2012 06:37:41 +0000 (22:37 -0800)
docs/assets/js/application.js

index 1f7282b66638d8dc65af9022ffa0b7a5873daf4d..ba77673000bb21e2a8cdd535e16e03eb7bc2267e 100644 (file)
     })
 
     // 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()