Extends the width of the last rect of each line to match the position of the widest rect over all the lines.