     {
         var rowCount:uint = layoutTarget.numLayoutElements;
         llv.length = rowCount;
-        llv.defaultMajorSize = typicalLayoutElement.getPreferredHeight();
-        llv.minorSize = typicalLayoutElement.getPreferredWidth();
+        llv.defaultMajorSize = typicalLayoutElement.getPreferredBoundsWidth();
+        llv.minorSize = typicalLayoutElement.getPreferredBoundsWidth();
         
         var measuredRowCount:int = (requestedRowCount != -1) ? requestedRowCount : rowCount;
         layoutTarget.measuredWidth = llv.minorSize;

        else if (!target || (target.numLayoutElements <= 0))
            return 0;
        else if (typicalLayoutElement)
            return typicalLayoutElement.getPreferredHeight();
        else
            return target.getLayoutElementAt(0).getPreferredHeight();
    }

    /**

            if (index1 != -1)
            {
                var element1:ILayoutElement = g.getLayoutElementAt(index1); 
                var element1Y:Number = element1.getLayoutBoundsY();
                var element1Height:Number = element1.getLayoutBoundsHeight();                 
                if ((element1Y < y1) && ((element1Y + element1Height) > y0))
                    i1 = index1;
            }
