# weforms/1.5.4/assets/js/blockFrameSetup.js

weForms – Easy Drag &amp; Drop Contact Form Builder For WordPress, version 1.5.4. 17 lines.

- Page: https://pluginprobe.com/plugins/weforms/1.5.4/code/assets/js/blockFrameSetup.js
- Raw: https://pluginprobe.com/plugins/weforms/1.5.4/raw/assets/js/blockFrameSetup.js
- Modified: 2020-10-20T13:26:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/weforms/1.5.4/code/assets/js/blockFrameSetup.js#L10-L20`.

```javascript
// moved to separate file so we could enqueue it and make sure jquery was loaded

(function() {
    jQuery( document ).ready( function() {
        var frameEl = window.frameElement;

        // get the form element
        var $form = jQuery('.wpuf-form-add');
        // get the height of the form
        var height = $form.find( '.wpuf-form' ).outerHeight(true);

        if (frameEl) {
            frameEl.height = height + 125;
        }
    });

 })();
```
