Commit e30942a2 authored by Sayak Banerjee's avatar Sayak Banerjee

Fix footer... again

parent c4aae648
......@@ -29,7 +29,6 @@ $(window).on("scroll", onScrollHandler);
/* Event handlers */
function onLoadHandler() {
doCheckComponents();
doCaptureScreenInitialData();
doCaptureScreenData();
doScrollSpy();
doFloatingFooter();
......@@ -62,19 +61,6 @@ function doCheckComponents() {
: false;
}
function doCaptureScreenInitialData() {
try {
if (componentFooter) {
var relativeOffset = $footer.prev().offset().top + $footer.prev().outerHeight();
var actualOffset = $footer.offset().top;
footerMargin = actualOffset - relativeOffset;
}
} catch(e) {
console.log("Error: " + e.message);
}
}
function doCaptureScreenData() {
try {
viewportHeight = $(window).height();
......@@ -82,7 +68,7 @@ function doCaptureScreenData() {
if (componentFooter) {
footerHeight = $footer.height();
footerTop = $footer.prev().offset().top + $footer.prev().outerHeight();
footerTop = footerTop + footerMargin + footerHeight;
footerTop = footerTop + 30 + footerHeight;
}
if (componentFooter && componentSidebar) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment