         
         const contentWidth:Number = Math.ceil(gridDimensions.contentWidth);
         const contentHeight:Number = Math.ceil(gridDimensions.contentHeight);
-        grid.setContentSize(contentWidth, contentHeight);
+        grid.setContentSize(contentWidth, contentHeight);        
     }
     
     /**

        if (!grid)
            return;
        
        // ToDo: Need to take typicalLayoutElement into account
        //var rowCount:int = grid.dataProvider.length;
        //var columnCount:int = grid.columns.length;
        
        var measuredWidth:Number = 640; //typicalLayoutElement.getPreferredBoundsWidth() * columnCount;
        var measuredHeight:Number = 480; //typicalLayoutElement.getPreferredBoundsHeight() * rowCount;
        var measuredMinWidth:Number = 640;
        var measuredMinHeight:Number = 480;;
        
        // Use Math.ceil() to make sure that if the content partially occupies
        // the last pixel, we'll count it as if the whole pixel is occupied.
        
        grid.measuredWidth = Math.ceil(measuredWidth);    
        grid.measuredHeight = Math.ceil(measuredHeight);    
        grid.measuredMinWidth = Math.ceil(measuredMinWidth);    
        grid.measuredMinHeight = Math.ceil(measuredMinHeight); 
        
       // trace("GridLayout.measure", grid.measuredWidth, grid.measuredHeight);        
    }
    
    /**

                var colWidth:Number = gridDimensions.getColumnWidth(colIndex);
                layoutGridElement(renderer, cellX, cellY, colWidth, rowHeight);
                
                // TBD(hmuller): need a local preferred bounds method once layoutGridElement supports constraints
                gridDimensions.setCellHeight(rowIndex, colIndex, renderer.getPreferredBoundsHeight());
                cellX += colWidth + colGap;
            }
            
            // TBD: if gridDimensions.rowHeight is now larger, we need to make another
            // pass to fix up the item renderer heights.
            
