Fixed issue where view offset wasn't applied to custom views