From df9517bdfcde3f01162d8e6043e73a7b89528257 Mon Sep 17 00:00:00 2001 From: Termina1 Date: Thu, 18 Oct 2012 18:59:51 +0400 Subject: [PATCH] change percentage offset behaviour --- waypoints.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waypoints.js b/waypoints.js index 61734a36..a699b37c 100644 --- a/waypoints.js +++ b/waypoints.js @@ -416,7 +416,7 @@ Support: else if (typeof o.options.offset === "string") { var amount = parseFloat(o.options.offset); adjustment = o.options.offset.indexOf("%") ? - Math.ceil(contextHeight * (amount / 100)) : amount; + -Math.ceil(o.element.height() * (amount / 100)) : amount; } /*