ibillingsley / HumbleNewTabPage

New tab page extension for Chrome and Firefox
https://chrome.google.com/webstore/detail/mfgdmpfihlmdekaclngibpjhdebndhdj
MIT License
646 stars 103 forks source link

Fix for Vivaldi showing zero innerWidth on first load #107

Closed ortiza5 closed 1 year ago

ortiza5 commented 1 year ago

It looks like Vivaldi is incorrectly returning a window.innerWidth of 0 on the first load as pointed out in #106.

I am not too sure what the original "scrollbar jump fix" does, but I added in a check to set the width to 100% if a value of 0 is found.

Hopefully Vivaldi fixes this bug, but this seems like a good workaround for now.

ortiza5 commented 1 year ago

Actually, it looks like Vivaldi has fixed this in there upcoming release 5.6.2829.3, so it should be fixed before too long. I will close this out.