Reorganize column width calculation.
This also avoids wrong results on mappings.