vendor/assets/javascripts/uikit/core/scrollspy.js in uikit2-rails-0.1.6 vs vendor/assets/javascripts/uikit/core/scrollspy.js in uikit2-rails-0.1.7

- old
+ new

@@ -1,6 +1,6 @@ -/*! UIkit 2.25.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ (function(UI) { "use strict"; var $win = UI.$win, @@ -169,10 +169,10 @@ var navitems, scrollTop = $win.scrollTop(), target = (function(){ for(var i=0; i< inviews.length;i++){ - if(inviews[i].offset().top >= scrollTop){ + if(inviews[i].offset().top + inviews[i].outerHeight() >= scrollTop){ return inviews[i]; } } })();