Compute the longest line width based on the longest line