Fixed viewport detection for Chrome