From: fat Date: Thu, 20 Dec 2012 06:37:41 +0000 (-0800) Subject: wait 100ms before engaging affix (allows for initial browser scroll) X-Git-Tag: v2.3.0^2~83^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9eff0cbffdd4381ee990e6fc78bee6caec92a00;p=thirdparty%2Fbootstrap.git wait 100ms before engaging affix (allows for initial browser scroll) --- 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()