                 var colWidth:Number = gridDimensions.getColumnWidth(colIndex);
                 layoutItemRenderer(renderer, cellX, cellY, colWidth, rowHeight);                
                 
-                gridDimensions.setCellHeight(rowIndex, colIndex, renderer.getPreferredBoundsHeight());
+                var preferredRowHeight:Number = renderer.getPreferredBoundsHeight()
+                gridDimensions.setCellHeight(rowIndex, colIndex, preferredRowHeight);
                 cellX += colWidth + colGap;
             }
            

        if (completeLayoutNeeded || grid.isInvalidateDisplayListReason("editorIndicator"))
            layoutEditorIndicator(editorIndicatorLayer);
        
        // To avoid flashing, force all of the layers to render now
        
        grid.validateNow();

                graphicElementRenderer.validateProperties();
                graphicElementRenderer.validateSize();
            }
                    
            renderer.setLayoutBoundsSize(width, height);            
        }
        
        if ((renderer is IInvalidating) && !(renderer is IGraphicElement))
        {
            const validateNowRenderer:IInvalidating = renderer as IInvalidating;
            validateNowRenderer.validateNow();            
        }
        
        renderer.setLayoutBoundsPosition(x, y);
