I\'m using window.innerHeight and window.innerWidth instructions to get the browser\'s available window size. It\'s working with firefox, safari (on a mac
Try to use screen.width instead of window.innerWidth.
screen.width
window.innerWidth