make sure offscreen doesnt cause vertical shift. fixes #829