Fixed viewport size detection