How to use the @shopgate/engage/core.getAbsoluteHeight function in @shopgate/engage

To help you get started, we’ve selected a few @shopgate/engage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shopgate / pwa / themes / theme-gmd / pages / Cart / components / Item / components / Product / index.jsx View on Github external
setTimeout(() => {
        const yOffset = -(window.innerHeight / 2)
          + getAbsoluteHeight(this.cardElement)
          + variables.paymentBar.height;

        this.cardElement.scrollIntoView({
          behavior: 'smooth',
          yOffset,
        });
      }, CART_INPUT_AUTO_SCROLL_DELAY);
    }
github shopgate / pwa / themes / theme-ios11 / pages / Cart / components / Item / components / Coupon / index.jsx View on Github external
componentDidUpdate() {
    this.transitionElement.style.height = `${getAbsoluteHeight(this.cardElement)}px`;
  }
github shopgate / pwa / themes / theme-ios11 / pages / Cart / components / Item / components / Coupon / index.jsx View on Github external
componentDidMount() {
    this.transitionElement.style.height = `${getAbsoluteHeight(this.cardElement)}px`;
  }
github shopgate / pwa / themes / theme-ios11 / pages / Cart / components / Item / components / Product / index.jsx View on Github external
setTimeout(() => {
        const yOffset = -(window.innerHeight / 2)
          + getAbsoluteHeight(this.cardElement)
          + variables.paymentBar.height;

        this.cardElement.scrollIntoView({
          behavior: 'smooth',
          yOffset,
        });
      }, CART_INPUT_AUTO_SCROLL_DELAY);
    }