     
     private function isValidScaleGrid():Boolean
     {
-    	return !isNaN(scaleGridLeft) &&
-        	   !isNaN(scaleGridTop) &&
-        	   !isNaN(scaleGridRight) &&
-        	   !isNaN(scaleGridBottom);
+        return !isNaN(scaleGridLeft) &&
+               !isNaN(scaleGridTop) &&
+               !isNaN(scaleGridRight) &&
+               !isNaN(scaleGridBottom);
     }
       
     //--------------------------------------------------------------------------

     *  @private
     */
    override public function set scale9Grid(value:Rectangle):void
	{
		if (value != null)
		{
			scaleGridTop = value.top;
			scaleGridBottom = value.bottom;
			scaleGridLeft = value.left;
			scaleGridRight = value.right;
		}
		else
		{
			scaleGridTop = NaN;
			scaleGridBottom = NaN;
			scaleGridLeft = NaN;
			scaleGridRight = NaN;
		}
	}

    //----------------------------------
    //  scaleGridBottom

        
        if (scaleGridChanged)
        {
            // Don't reset scaleGridChanged since we also check it in updateDisplayList
            if (isValidScaleGrid())
                resizeMode = ResizeMode.SCALE; // Force the resizeMode to scale 
        }
        
        // FIXME (egeorgie): we need to optimize this, iterating through all the elements is slow.
