                 resizeMode = ResizeMode.SCALE; // Force the resizeMode to scale 
         }
         
-        // FIXME (egeorgie): we need to optimize this, iterating through all the elements is slow.
         // Validate element properties
         if (numGraphicElements > 0)
         {

        
            if (isValidScaleGrid())
            {
                // FIXME (egeorgie): how about overlays in this case? Should we care about those?
                if (numChildren > 0)
                    throw new Error(resourceManager.getString("components", "scaleGridGroupError"));

                super.scale9Grid = new Rectangle(scaleGridLeft, 
                                           scaleGridTop,    
                                           scaleGridRight - scaleGridLeft, 
                                           scaleGridBottom - scaleGridTop);
            } 
            else
            {

        // Since IGraphicElement is not ILayoutManagerClient, we need to make sure we
        // validate sizes of the elements, even in cases where recursive==false.
        
        // Validate element size
        if (numGraphicElements > 0)
        {
