mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-08 20:44:43 +00:00
wait 100ms before engaging affix (allows for initial browser scroll)
This commit is contained in:
parent
96e5fa6143
commit
e9eff0cbff
1 changed files with 8 additions and 6 deletions
|
|
@ -14,12 +14,14 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
// side bar
|
// side bar
|
||||||
$('.bs-docs-sidenav').affix({
|
setTimeout(function () {
|
||||||
offset: {
|
$('.bs-docs-sidenav').affix({
|
||||||
top: function () { return $window.width() <= 980 ? 290 : 210 }
|
offset: {
|
||||||
, bottom: 270
|
top: function () { return $window.width() <= 980 ? 290 : 210 }
|
||||||
}
|
, bottom: 270
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
}, 100)
|
||||||
|
|
||||||
// make code pretty
|
// make code pretty
|
||||||
window.prettyPrint && prettyPrint()
|
window.prettyPrint && prettyPrint()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue