Auto dim column

the topic has been touched. however, people have their own script and difference issue compare others