Fix for iOS viewport inconsistencies