packages/cf-expandables/src/ExpandableTransition.js
function expand() {
    this.dispatchEvent( 'expandBegin', { target: this } );

    if ( !previousHeight || element.scrollHeight > previousHeight ) {
      previousHeight = element.scrollHeight;
    }

    element.style.maxHeight = previousHeight + 'px';
    _baseTransition.applyClass( CLASSES.EXPANDED );

    return this;
  }
function expand() {
    this.dispatchEvent( 'expandBegin', { target: this } );

    if ( !previousHeight || element.scrollHeight > previousHeight ) {
      previousHeight = element.scrollHeight;
    }

    element.style.maxHeight = previousHeight + 'px';
    _baseTransition.applyClass( CLASSES.EXPANDED );

    return this;
  }
function expand ( ) { this . dispatchEvent ( 'expandBegin' , { target : this } ) ; if ( ! previousHeight || element . scrollHeight > previousHeight ) { previousHeight = element . scrollHeight ; } element . style . maxHeight = previousHeight + 'px' ; _baseTransition . applyClass ( CLASSES . EXPANDED ) ; return this ; }
Expands the expandable content
@returns {ExpandableTransition} An instance.
Expands the expandable content