     //  Class methods
     //
     //--------------------------------------------------------------------------
+    
+    mx_internal function getLayoutChildAt(index:int):IUIComponent
+    {
+        return PostScaleAdapter.getCompatibleIUIComponent(getChildAt(index));
+    }
 
     //--------------------------------------------------------------------------
     //

        var n:int = numChildren;
        for (var i:int = 0; i < n; i++)
        {
            var child:DisplayObject = getChildAt(i);

            if (child is IUIComponent && !IUIComponent(child).includeInLayout)
                continue;

            left = Math.min(left, child.x);
            top = Math.min(top, child.y);

            // width/height can be NaN if using percentages and
            // hasn't been layed out yet.
            if (!isNaN(child.width))
                right = Math.max(right, child.x + child.width);
            if (!isNaN(child.height))
                bottom = Math.max(bottom, child.y + child.height);
        }

        // Add in the right/bottom margins and view metrics.

import flash.utils.getDefinitionByName;

import mx.binding.BindingManager;
import mx.containers.utilityClasses.PostScaleAdapter;
import mx.controls.Button;
import mx.controls.HScrollBar;
import mx.controls.VScrollBar;
