mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-17 05:00:24 +00:00
Make affix accept 0 as offsetTop or offsetBottom
Fixes #12815. Closes #14363.
This commit is contained in:
parent
9b9e2f5d13
commit
e29c75041e
1 changed files with 2 additions and 2 deletions
|
|
@ -152,8 +152,8 @@
|
|||
|
||||
data.offset = data.offset || {}
|
||||
|
||||
if (data.offsetBottom) data.offset.bottom = data.offsetBottom
|
||||
if (data.offsetTop) data.offset.top = data.offsetTop
|
||||
if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
|
||||
if (data.offsetTop != null) data.offset.top = data.offsetTop
|
||||
|
||||
Plugin.call($spy, data)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue