IE7 Positioning Issue & Fix
quintonloges opened this issue · 0 comments
I ran into a problem where the positioning was incorrect on IE7 (IE11 Compatibility Mode) and it wasn't accounting for scroll positioning for some reason..anyway here is the fix that worked for me (find this in the that.updateSC
function:
// IE7 and below fix
if (navigator.appVersion.indexOf("MSIE 7.") != -1) {
that.sc.css({
top: that.offset().top + that.outerHeight() + document.body.scrollTop,
left: that.offset().left,
width: that.outerWidth()
});
} else { // this works for every other browser
that.sc.css({
top: that.offset().top + that.outerHeight(),
left: that.offset().left,
width: that.outerWidth()
});
}