Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE7 Positioning Issue & Fix #80

Open
quintonloges opened this issue Oct 26, 2017 · 0 comments
Open

IE7 Positioning Issue & Fix #80

quintonloges opened this issue Oct 26, 2017 · 0 comments

Comments

@quintonloges
Copy link

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()
});
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant