         if (!displayableColumns)
             return;
 
-		// for purposes of computing rows, we need to accomodate
-		// the case where all the visible columns are locked columns
-		var countableContentListItems:Array = this.listItems;
-		if (visibleColumns && !visibleColumns.length && visibleLockedColumns && visibleLockedColumns.length)
-			countableContentListItems = lockedColumnContent.listItems;
-			
+        // for purposes of computing rows, we need to accomodate
+        // the case where all the visible columns are locked columns
+        var countableContentListItems:Array = this.listItems;
+        if (visibleColumns && !visibleColumns.length && visibleLockedColumns && visibleLockedColumns.length)
+            countableContentListItems = lockedColumnContent.listItems;
+            
         var oldHorizontalScrollBar:Object = horizontalScrollBar;
         var oldVerticalScrollBar:Object = verticalScrollBar;
 

            header.setActualSize(unscaledWidth + ww, hh);
            if (!skipHeaderUpdate)
            {
				header.headerItemsChanged = true;
                header.invalidateDisplayList(); // make sure it redraws, even if size didn't change
                // internal renderers could have changed
            }

            && listItems[0][colCount - 1].x + 
            visibleColumns[colCount - 1].width > (displayWidth - listContent.x + viewMetrics.left))
            colCount--;
        else if (colCount > 1 && !collectionHasRows && 
            visibleColumns[colCount - 1] == displayableColumns[displayableColumns.length - 1])
        {
            // the slower computation requires adding up the previous columns
            var colX:int = 0;
            for (var i:int = 0; i < visibleColumns.length; i++)
            {
                colX += visibleColumns[i].width;
            }
            if (colX > (displayWidth - listContent.x + viewMetrics.left))
                colCount--;
        }

        // trace("configureSB", verticalScrollPosition);

