diff --git a/_includes/footer.html b/_includes/footer.html
index 01abd9f649..14ae6c0a9c 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -1,6 +1,7 @@
-
+
diff --git a/_layouts/docs.html b/_layouts/docs.html
index 0bbb387e1e..743c2aa9ba 100644
--- a/_layouts/docs.html
+++ b/_layouts/docs.html
@@ -41,14 +41,14 @@ else %}{% assign edit_url = "" %}{% endif %} {% break %} {% endif %} {% endfor %
{% endif %}
-
+
-
+
@@ -114,7 +114,7 @@ else %}{% assign edit_url = "" %}{% endif %} {% break %} {% endif %} {% endfor %
-
{%else%}{% endif %}
+
diff --git a/images/docs.png b/images/docs.png
new file mode 100644
index 0000000000..4095a0a70c
Binary files /dev/null and b/images/docs.png differ
diff --git a/images/docs@2x.png b/images/docs@2x.png
new file mode 100644
index 0000000000..15d39ecd5d
Binary files /dev/null and b/images/docs@2x.png differ
diff --git a/js/docs.js b/js/docs.js
index 33e596dda8..10541e5739 100644
--- a/js/docs.js
+++ b/js/docs.js
@@ -80,12 +80,14 @@ function checkNavSizes()
headerOffset = document.getElementsByClassName("container-fluid")[0].getBoundingClientRect().bottom;
if (footerTop < sidebarBottom || (sidebarBottom < footerTop && sidebarBottom < $(window).height()))
{
+
// the footer is overlapping the sidebar
- var sidebarHeight = ((footerTop - headerOffset) < $(window).height()) ? (footerTop - headerOffset) : $(window).height();
+ var sidebarHeight = (footerTop < $(window).height()) ? footerTop : $(window).height();
var tocNavHeight = (footerTop < $(window).height()) ? footerTop : $(window).height();
sidebarObj.style.height = sidebarHeight + "px";
- document.getElementsByClassName("toc-nav")[0].style.height = footerTop + "px";
- highlightRightNav(currentHeading);
+ document.getElementsByClassName("toc-nav")[0].style.height = tocNavHeight + "px";
+ $(sidebarObj).clearQueue().finish();
+ setTimeout(highlightRightNav(currentHeading),1);
}
}
$(window).resize(function() {