fix for firefox window size detection