Skip to main content

City of Northampton Housing Partnership, Legal Resources for Tenants and Landlords

Citation
City of Northampton Housing Partnership, Legal Resources for Tenants and Landlords
Source
Official source

Related Parts of This Source

Full Text

1,800 chars
try {
window.Pages.onResizeHandlersExecute();
} catch (e) { }
} else {
outerSizingTS.css('padding-top', fixedTopTS.outerHeight() - 1);
innerSizingTS.css('padding-top', '');
}
} else {
innerSizingTS.css('padding-top', '');
outerSizingTS.css('padding-top', '');
}
})();

// Fixed bottom script
(function () {
if (!fixedBottomTS || fixedBottomTS.length === 0) return;

// If the widget has gone narrow, force unfix
if (editing || fixedBottomTS.outerHeight() > 200) {
fixedBottomTS[0].classList.add(forceUnfixClassTS);
} else {
fixedBottomTS[0].classList.remove(forceUnfixClassTS);
}

if (fixedBottomTS.css('position') === 'fixed') {
bodyContainerTS.css('padding-bottom', fixedBottomTS.outerHeight());
} else {
bodyContainerTS.css('padding-bottom', '');
}
})();

// Fixed left script
(function () {
if (!fixedLeftTS || fixedLeftTS.length === 0) return;

if (editing) {
fixedLeftTS[0].classList.add(forceUnfixClassTS);
} else {
fixedLeftTS[0].classList.remove(forceUnfixClassTS);
}

if (fixedLeftTS.css('position') === 'fixed') {
var anchorHeight = anchor.outerHeight() - 1;
fixedLeftTS.css('top', anchorHeight);
var leftBoundingTS = fixedLeftTS[0].getBoundingClientRect();
iterateLeftpads(function (containerTS) {
var containerBoundingTS = containerTS.getBoundingClientRect();
if (containerBoundingTS.left <= leftBoundingTS.right) {
$(containerTS).css('padding-left', leftBoundingTS.width + 16);
} else {
$(containerTS).css('padding-left', '');
}
});
} else {
fixedLeftTS.css('top', '');
iterateLeftpads(function (containerTS) {
$(containerTS).css('padding-left', '');
});
}
})();

// Fixed right script
(function () {
if (!fixedRightTS || fixedRightTS.length === 0) return;

if (editing) {
fixedRightTS[0].classList.add(forceUnfixClassTS);
} else {
fixedRightTS[0].classList.remove(forceUnfixClassTS);
}