Remove setting and calculate number of lines from display properties