+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2010 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
 package spark.layouts
 {
 import mx.containers.utilityClasses.ConstraintColumn;


use namespace mx_internal;

public class FormItemLayout extends ConstraintLayout
{
    public function FormItemLayout()
    {
        super();
    }
    
    // true if setLayoutColumnWidths has been called.
    private var useLayoutColumnWidths:Boolean = false;
    
    /**
     *  @private

        if (!layoutTarget)
            return;
        
        // need to parse constraints and rows may resize.
        measureAndPositionColumnsAndRows();
        
        if (layoutColumnWidths)
            setColumnWidths(layoutColumnWidths);
        
        layoutContent(unscaledWidth, unscaledHeight);
    }
    
    /**
     *  @private
     *  Used by layout to get the measured column widths
     */
    public function getMeasuredColumnWidths():Vector.<Number>
    {
        measureAndPositionColumnsAndRows();
        
