             var dy:Number = lo.actualSize.y;
             maxX = Math.max(maxX, x + dx);
             maxY = Math.max(maxY, y + dy);
-            if ((explicitRowCount == -1) && (y < maxVisibleY) && ((y + dy) > minVisibleY)) 
+            if ((y < maxVisibleY) && ((y + dy) > minVisibleY))
             	visibleRows += 1;
             y += dy + gap;
         }
-        if (explicitRowCount == -1) 
-        	setRowCount(visibleRows);
+        setRowCount(visibleRows);
         layoutTarget.setContentSize(maxX, maxY);
     }
     

            preferredWidth = Math.max(preferredWidth, li.preferredSize.x);
            preferredHeight += li.preferredSize.y; 
            
            var vrr:Boolean = (explicitRowCount != -1) && (visibleRows < explicitRowCount);

            if (vrr || (explicitRowCount == -1))
            {
                var mw:Number =  hasPercentWidth(li) ? li.minSize.x : li.preferredSize.x;
                var mh:Number = hasPercentHeight(li) ? li.minSize.y : li.preferredSize.y;                   

        if (_rowHeight != value)
        {
            setRowHeight(value);
            invalidateTargetSizeAndDisplayList();
        }
    }

