Paint the lines based on the screen size, not the root layer size.