viewport fix for iPad, tested in server