dist/index-es.js
function animation($column, $columns) {
        let width = 0;
        chain().not($column).each(function () {
            width += $(this).outerWidth(true);
        });
        $columns.stop().animate({
            scrollLeft: width
        }, settings.delay, function () {
            const last = $columns.find(`.${namespace}-column:not(.${namespace}-collapse)`).last();
            // last[0].scrollIntoView(); // Scrolls vertically also unfortunately
            last[0].scrollLeft = width;
            if (settings.scroll) {
                settings.scroll.call(this, $column, $columns);
            }
        });
    }
function animation($column, $columns) {
        let width = 0;
        chain().not($column).each(function () {
            width += $(this).outerWidth(true);
        });
        $columns.stop().animate({
            scrollLeft: width
        }, settings.delay, function () {
            const last = $columns.find(`.${namespace}-column:not(.${namespace}-collapse)`).last();
            // last[0].scrollIntoView(); // Scrolls vertically also unfortunately
            last[0].scrollLeft = width;
            if (settings.scroll) {
                settings.scroll.call(this, $column, $columns);
            }
        });
    }
function animation ( $column , $columns ) { let width = 0 ; chain ( ) . not ( $column ) . each ( function ( ) { width += $ ( this ) . outerWidth ( true ) ; } ) ; $columns . stop ( ) . animate ( { scrollLeft : width } , settings . delay , function ( ) { const last = $columns . find ( ` ${ namespace } ${ namespace } ` ) . last ( ) ; // last[0].scrollIntoView(); // Scrolls vertically also unfortunately last [ 0 ] . scrollLeft = width ; if ( settings . scroll ) { settings . scroll . call ( this , $column , $columns ) ; } } ) ; }
Ensure the viewport shows the entire newly expanded item.
Ensure the viewport shows the entire newly expanded item .