mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-01 19:30:31 +02:00
wait 100ms before engaging affix (allows for initial browser scroll)
This commit is contained in:
@@ -14,12 +14,14 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
// side bar
|
// side bar
|
||||||
|
setTimeout(function () {
|
||||||
$('.bs-docs-sidenav').affix({
|
$('.bs-docs-sidenav').affix({
|
||||||
offset: {
|
offset: {
|
||||||
top: function () { return $window.width() <= 980 ? 290 : 210 }
|
top: function () { return $window.width() <= 980 ? 290 : 210 }
|
||||||
, bottom: 270
|
, bottom: 270
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}, 100)
|
||||||
|
|
||||||
// make code pretty
|
// make code pretty
|
||||||
window.prettyPrint && prettyPrint()
|
window.prettyPrint && prettyPrint()
|
||||||
|
Reference in New Issue
Block a user