From 888b3cbb8e41d0293559ebe0a41bb4d43eab86b7 Mon Sep 17 00:00:00 2001 From: Benjamin Bretz Date: Thu, 17 Jul 2014 17:07:38 +0200 Subject: [PATCH] fix magellan showing wrong active state fixes #5417 --- js/foundation/foundation.magellan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation/foundation.magellan.js b/js/foundation/foundation.magellan.js index 2a396e096..82f67073e 100755 --- a/js/foundation/foundation.magellan.js +++ b/js/foundation/foundation.magellan.js @@ -145,7 +145,7 @@ 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), -- 2.47.2