                 continue;
                 
             // Set the layout element's position
-            var x:Number = (contentWidth - layoutElement.getLayoutBoundsWidth()) * hAlign;
+            var x:Number = (containerWidth - layoutElement.getLayoutBoundsWidth()) * hAlign;
             layoutElement.setLayoutBoundsPosition(x, y);
                             
             // Update maxX,Y, first,lastVisibleIndex, and y

                else
                    layoutElementWidth = layoutElement.getPreferredBoundsWidth();
                
                contentWidth = Math.max(contentWidth, layoutElementWidth);
            }
        }


    }
    
    //  - virtual layout only - 
    private function calculateElementX(elt:ILayoutElement, eltWidth:Number, containerWidth:Number):Number
    {
       switch(horizontalAlign)
       {
           case HorizontalAlign.CENTER: 
               return (containerWidth - eltWidth) * 0.5;
           case HorizontalAlign.RIGHT: 
               return containerWidth - eltWidth;
       }
       return 0;  // HorizontalAlign.LEFT
    }


    /**
     *  @private
