]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix magellan showing wrong active state fixes #5417 5458/head
authorBenjamin Bretz <Benjamin.Bretz@aexea.de>
Thu, 17 Jul 2014 15:07:38 +0000 (17:07 +0200)
committerBenjamin Bretz <Benjamin.Bretz@aexea.de>
Thu, 17 Jul 2014 15:07:38 +0000 (17:07 +0200)
js/foundation/foundation.magellan.js

index 2a396e0967cd50d11aafa42f9b4d3a773ec87684..82f67073eadd6f8e717430c36112f72418dcd45f 100755 (executable)
         var name = $(this).data(self.data_attr('magellan-arrival')),
             dest = $('[' + self.add_namespace('data-magellan-destination') + '=' + name + ']');
         if (dest.length > 0) {
-          var top_offset = dest.offset().top - settings.destination_threshold - expedition.outerHeight();
+          var top_offset = Math.floor(dest.offset().top - settings.destination_threshold - expedition.outerHeight());
           return {
             destination : dest,
             arrival : $(this),