window.width() does not give you the width of the screen, but the current window.
IE will always show a disabled scrollbar to the right of your document, even if it is not needed.
I guess the width that is subtracted in IE.
Try using screen.availWidthto get the full screen width.
source
share