diff options
Diffstat (limited to 'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/affix.js')
-rw-r--r-- | bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/affix.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/affix.js b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/affix.js index 98197642..11a3d39a 100644 --- a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/affix.js +++ b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/affix.js @@ -1,5 +1,5 @@ /* ======================================================================== - * Bootstrap: affix.js v3.3.4 + * Bootstrap: affix.js v3.3.5 * http://getbootstrap.com/javascript/#affix * ======================================================================== * Copyright 2011-2015 Twitter, Inc. @@ -28,7 +28,7 @@ this.checkPosition() } - Affix.VERSION = '3.3.4' + Affix.VERSION = '3.3.5' Affix.RESET = 'affix affix-top affix-bottom' @@ -78,7 +78,7 @@ var offset = this.options.offset var offsetTop = offset.top var offsetBottom = offset.bottom - var scrollHeight = $(document.body).height() + var scrollHeight = Math.max($(document).height(), $(document.body).height()) if (typeof offset != 'object') offsetBottom = offsetTop = offset if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element) |