Paint the lines based on screen size instead of root layer size.