_resizeHandler() {
    if (get(this, 'isDestroying') || get(this, 'isDestroyed')) {
      return;
    }
    if (!get(this, 'needsEventHandlers')) {
      return;
    }
    let element = get(this, 'element');
    let parentWidth = element.parentElement.offsetWidth;
    if (element.offsetWidth !== parentWidth) {
      element.style.width = `${parentWidth}px`;
    }
    get(this, 'stickybits').update(element);
  }
/**
     Update stickybits instance if window is resized

     @method _resizeHandler
     @private
  */
Update stickybits instance if window is resized
Update stickybits instance if window is resized
_resizeHandler() {
    if (get(this, 'isDestroying') || get(this, 'isDestroyed')) {
      return;
    }
    if (!get(this, 'needsEventHandlers')) {
      return;
    }
    let element = get(this, 'element');
    let parentWidth = element.parentElement.offsetWidth;
    if (element.offsetWidth !== parentWidth) {
      element.style.width = `${parentWidth}px`;
    }
    get(this, 'stickybits').update(element);
  }
_resizeHandler ( ) { if ( get ( this , 'isDestroying' ) || get ( this , 'isDestroyed' ) ) { return ; } if ( ! get ( this , 'needsEventHandlers' ) ) { return ; } let element = get ( this , 'element' ) ; let parentWidth = element . parentElement . offsetWidth ; if ( element . offsetWidth !== parentWidth ) { element . style . width = ` ${ parentWidth } ` ; } get ( this , 'stickybits' ) . update ( element ) ; }
Update stickybits instance if window is resized
Update stickybits instance if window is resized