0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

Make affix accept 0 as offsetTop or offsetBottom

Fixes #12815.
Closes #14363.
This commit is contained in:
samme 2014-08-09 10:17:26 -07:00 committed by Heinrich Fenkart
parent 9b9e2f5d13
commit e29c75041e

View File

@ -152,8 +152,8 @@
data.offset = data.offset || {} data.offset = data.offset || {}
if (data.offsetBottom) data.offset.bottom = data.offsetBottom if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
if (data.offsetTop) data.offset.top = data.offsetTop if (data.offsetTop != null) data.offset.top = data.offsetTop
Plugin.call($spy, data) Plugin.call($spy, data)
}) })