diff options
Diffstat (limited to 'plugins/jetpack/modules/contact-form/js/editor-view.js')
-rw-r--r-- | plugins/jetpack/modules/contact-form/js/editor-view.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/jetpack/modules/contact-form/js/editor-view.js b/plugins/jetpack/modules/contact-form/js/editor-view.js index 7cc0674c..951a0d88 100644 --- a/plugins/jetpack/modules/contact-form/js/editor-view.js +++ b/plugins/jetpack/modules/contact-form/js/editor-view.js @@ -115,6 +115,11 @@ $editframe.trigger( 'checkheight' ); }, 250 ); + // Add a second timeout for super long forms racing, and to not slow it down for shorter forms unnecessarily. + setTimeout( function(){ + $editframe.trigger( 'checkheight' ); + }, 500 ); + var $editfields = $editframe.contents().find( '.grunion-fields' ), $buttons = $editframe.contents().find( '.grunion-controls' ); |