calculate first-row width, support colgroup