Improved infinite loop avoidance in autoSizeColumns()

Fixed steps in autoSizeColumns() that detects infinite loops for shrink and grow operations.  In some cases the prevTotal exceeded total (for grow) and was less than total (for shrink).  The existing check simply checked if the 2 values were equal, but not if prevTotal had gone beyond the proper bounds, resulting in an infinite loop.