Actually calculating view offset variables instead of using numbers that look good.