view: Fix calculation of max. Use Col and Cols instead of ColFirst and ColLast. Do the same for Row*.