public/javascripts/yui/carousel/carousel-debug.js
function () {
            var carousel = this, i, isVertical = carousel.get("isVertical"), firstVisible = carousel.get("firstVisible"), item, n, rsz, sz;

            if (carousel._itemsTable.numItems < 1) {
                return;
            }

            sz  = getCarouselItemSize.call(carousel,
                    isVertical ? "height" : "width");
            // This fixes the widget to auto-adjust height/width for absolute
            // positioned children.
            item = carousel._itemsTable.items[firstVisible].id;

            sz   = isVertical ? getStyle(item, "width") :
                    getStyle(item, "height");

            Dom.setStyle(carousel._carouselEl,
                         isVertical ? "width" : "height", sz + "px");

            // Set the rendered state appropriately.
            carousel._hasRendered = true;
            carousel.fireEvent(renderEvent);
        }
function () {
            var carousel = this, i, isVertical = carousel.get("isVertical"), firstVisible = carousel.get("firstVisible"), item, n, rsz, sz;

            if (carousel._itemsTable.numItems < 1) {
                return;
            }

            sz  = getCarouselItemSize.call(carousel,
                    isVertical ? "height" : "width");
            // This fixes the widget to auto-adjust height/width for absolute
            // positioned children.
            item = carousel._itemsTable.items[firstVisible].id;

            sz   = isVertical ? getStyle(item, "width") :
                    getStyle(item, "height");

            Dom.setStyle(carousel._carouselEl,
                         isVertical ? "width" : "height", sz + "px");

            // Set the rendered state appropriately.
            carousel._hasRendered = true;
            carousel.fireEvent(renderEvent);
        }
function ( ) { var carousel = this , i , isVertical = carousel . get ( "isVertical" ) , firstVisible = carousel . get ( "firstVisible" ) , item , n , rsz , sz ; if ( carousel . _itemsTable . numItems < 1 ) { return ; } sz = getCarouselItemSize . call ( carousel , isVertical ? "height" : "width" ) ; // This fixes the widget to auto-adjust height/width for absolute // positioned children. item = carousel . _itemsTable . items [ firstVisible ] . id ; sz = isVertical ? getStyle ( item , "width" ) : getStyle ( item , "height" ) ; Dom . setStyle ( carousel . _carouselEl , isVertical ? "width" : "height" , sz + "px" ) ; // Set the rendered state appropriately. carousel . _hasRendered = true ; carousel . fireEvent ( renderEvent ) ; }
Refresh the widget UI if it is not already rendered, on first item
addition.

@method _refreshUi
@protected
Refresh the widget UI if it is not already rendered on first item addition .