wix-height-updater
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

wix-height-updater

Tired of calling Wix.setHeight every time your iframe's height was changed?
wix-height-updater will do it for you!

How to use

Install:

npm install wix-height-updater

Then just import the function and call it like that:

import {listenToHeightChanges} from 'wix-height-updater';
 
listenToHeightChanges(window.Wix, window);

Thats it. Now you can remove all of your calls to Wix.setHeight.

If you can't import the function, you can load the bundle (https://static.parastorage.com/unpkg/wix-height-updater@1.0.140/dist/statics/app.bundle.min.js) and call window.HeightUpdater.listenToHeightChanges

Adittional features

You can pause and resume the height updater, useful for cases when you want to control the iframe's height manually temporarily.

Simply import and call pauseHeightChanges() and resumeHeightChanges(). isPaused() is also available.

/wix-height-updater/

    Package Sidebar

    Install

    npm i wix-height-updater

    Weekly Downloads

    5

    Version

    1.2.1

    License

    none

    Unpacked Size

    2.74 MB

    Total Files

    16

    Last publish

    Collaborators

    • arielh
    • falconci
    • yurynix
    • itai.benda
    • wix-ci
    • wix-ambassador
    • shahata
    • netanelgilad
    • wix-ci-publisher
    • wix-bi-publisher