{"size": 583, "ext": "js", "max_stars_repo_path": "wp-content/plugins/ninja-forms/assets/js/min/blockFrameSetup.js", "max_stars_repo_name": "marketingincolor/rhi-fg19", "max_stars_repo_stars_event_min_datetime": "2020-04-05T12:24:29.000Z", "max_stars_repo_stars_event_max_datetime": "2020-04-05T12:24:29.000Z", "max_issues_repo_path": "wp-content/plugins/ninja-forms/assets/js/min/blockFrameSetup.js", "max_issues_repo_name": "marketingincolor/rhi-fg19", "max_issues_repo_issues_event_min_datetime": "2020-07-17T00:53:25.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-12T09:55:14.000Z", "max_forks_repo_path": "wp-content/plugins/ninja-forms/assets/js/min/blockFrameSetup.js", "max_forks_repo_name": "marketingincolor/rhi-fg19", "max_forks_repo_forks_event_min_datetime": "2020-11-04T07:28:31.000Z", "max_forks_repo_forks_event_max_datetime": "2020-11-04T07:28:31.000Z"}
{"max_stars_count": 1, "max_issues_count": 4, "max_forks_count": 1, "avg_line_length": 32.3888888889, "max_line_length": 81, "alphanum_fraction": 0.590051458}
// moved to separate file so we could enqueue it and make sure jquery was loaded

(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;
        }
    });
 
 })();