Added offscreen cell flag for optimisation of height calculations