         }
         
         if (variableColumnWidth)
-            layoutElement.setLayoutSize(width, newHeight);
+            layoutElement.setLayoutBoundsSize(width, newHeight);
         else
-            layoutElement.setLayoutSize(columnWidth, newHeight);
+            layoutElement.setLayoutBoundsSize(columnWidth, newHeight);
     }
         
     //--------------------------------------------------------------------------

    {
        var index:int = (i0 + i1) / 2;
        var element:ILayoutElement = g.getLayoutElementAt(index);        
        var elementX:Number = element.getLayoutPositionX();
        // TBD: deal with null element, includeInLayout false.
        if ((x >= elementX) && (x < elementX + element.getLayoutWidth() + gap))
            return index;
        else if (i0 == i1)
            return -1;

                continue;
            }            

            preferredHeight = Math.max(preferredHeight, le.getPreferredBoundsHeight());
            preferredWidth += le.getPreferredBoundsWidth(); 
            
            var vcr:Boolean = (reqColumns != -1) && (visibleColumns < reqColumns);
            if (vcr || (reqColumns == -1))
            {
                var mw:Number = hasPercentWidth(le)  ? le.getMinBoundsWidth() : le.getPreferredBoundsWidth();
                var mh:Number = hasPercentHeight(le) ? le.getMinBoundsHeight() : le.getPreferredBoundsHeight();                   
                minWidth += mw;
                minHeight = Math.max(minHeight, mh);
            }
