HEX
Server: LiteSpeed
System: Linux premium263.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: eastcjee (525)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/ninja-forms/assets/js/lib/blockFrameSetup.js
/**
 * This file is used by form block iFrame
 *
 * It was created with original block, it is still used by refactored block.
 */
(function() {
    jQuery(document).on( 'nfFormReady', function(){
        var frameEl = window.frameElement;

        // get the form element
        var $form = jQuery("#nf-form-" + ninjaFormsBlockSetup.form_id + "-cont");
        // get the height of the form
        var height = $form.find( '.ninja-forms-form-wrap' ).outerHeight(true);

        if (frameEl) {
            // add 125 to height b/c the submit button was missing
            frameEl.height = height + 125;
        }
    });
 
 })();