Positions the lines correctly, depending on the flow.