From 7a4fa50b033004cf2fb53969d196c014ba26dfe7 Mon Sep 17 00:00:00 2001 From: Sashko Stubailo Date: Mon, 27 Oct 2014 11:42:38 -0700 Subject: [PATCH] Fix waypoint speed issue --- docs/client/docs.less | 2 +- docs/client/layout.html | 2 +- docs/client/links.js | 21 ++++++++++++--------- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/docs/client/docs.less b/docs/client/docs.less index eb968260ba..e7b22a16ce 100644 --- a/docs/client/docs.less +++ b/docs/client/docs.less @@ -442,7 +442,7 @@ pre { } .logo { - width: 90%; + width: 180px; margin-bottom: 10px; } } diff --git a/docs/client/layout.html b/docs/client/layout.html index a9e04da839..d7a44328f1 100644 --- a/docs/client/layout.html +++ b/docs/client/layout.html @@ -33,7 +33,7 @@

- 1.0 Documentation +
1.0 Documentation

diff --git a/docs/client/links.js b/docs/client/links.js index 62d47fe3cf..89d3df8d82 100644 --- a/docs/client/links.js +++ b/docs/client/links.js @@ -28,16 +28,19 @@ Meteor.startup(function () { var docsType = Session.get("fullApi") ? "full" : "basic"; Tracker.afterFlush(function () { $.waypoints('destroy'); - $('.main-content [id]').each(function (i, el) { - if (! $("#nav [href='#/" + docsType + '/' + el.id + "']").get(0)) { - // only add waypoints to things that have sidebar links - return; - } - $(el).waypoint(function() { - updateUrlFromWaypoint(this); - }, { context: $('.main-content') }); - }); + setTimeout(function () { + $('.main-content [id]').each(function (i, el) { + if (! $("#nav [href='#/" + docsType + '/' + el.id + "']").get(0)) { + // only add waypoints to things that have sidebar links + return; + } + + $(el).waypoint(function() { + updateUrlFromWaypoint(this); + }, { context: $('.main-content') }); + }); + }, 0); }); }); });