         var layoutTarget:GroupBase = target;
         if (!layoutTarget || !gridLayout)
             return;
+        
+        //trace("CHB.udl", unscaledWidth, unscaledHeight);
         
         oldVisibleColumnIndices = visibleColumnIndices;
         visibleColumnIndices = gridLayout.getVisibleColumnIndices();

            var element:ILayoutElement = 
                layoutTarget.getVirtualElementAt(columnIndex);
            
            const bounds:Rectangle = gridDimensions.getColumnBounds(columnIndex);
            
            const elementWidth:Number = bounds.width;
            
            var elementHeight:Number;
            const prefHeight:Number = 
                typicalLayoutElement.getPreferredBoundsHeight();
            if (prefHeight)
            {
                elementHeight = prefHeight;
            }
            else
            {
                // Find out the element's dimensions sizes.
                // We do this after the element has been already resized
                // to its preferred size by passing NaN for the constraints.
                element.setLayoutBoundsSize(NaN, NaN);                
                elementHeight = element.getLayoutBoundsHeight();
            }
            element.setLayoutBoundsSize(elementWidth, elementHeight);
            
            // Position the element.
            element.setLayoutBoundsPosition(bounds.x, 0);
            
            // Find maximum element extents. This is needed for
            // the scrolling support.
            maxHeight = Math.max(maxHeight, elementHeight);
        }
                
        // Scrolling support - update the content size
        layoutTarget.setContentSize(gridDimensions.contentWidth, maxHeight);
        
        // ToDo(cframpto): 
        // These separators will need mouse listeners for the column move.
        // The listeners will have to be removed when the separators are freed 
        // or will have to be cached in a seperate freed list.
        
        // Now layout the separators between the headers.
        visibleHeaderSeparators = gridLayout.layoutColumnHeaderSeparators(
                                                oldVisibleColumnIndices, 

import mx.core.IVisualElement;
import mx.core.mx_internal;

import spark.components.DataGroup;
import spark.components.supportClasses.GridColumn;
import spark.layouts.supportClasses.LayoutBase;

use namespace mx_internal;
