Correct scroll line calculation.