diff --git a/core/modules/outside_in/js/outside_in.js b/core/modules/outside_in/js/outside_in.js index e802a6c..4b78553 100644 --- a/core/modules/outside_in/js/outside_in.js +++ b/core/modules/outside_in/js/outside_in.js @@ -177,6 +177,10 @@ var search = Drupal.ajax.WRAPPER_FORMAT + '=drupal_dialog'; var replace = Drupal.ajax.WRAPPER_FORMAT + '=drupal_dialog_offcanvas'; + + // Calculates initial height to be applied to jQuery UI dialog widgets. + var height = $(document).height(); + // Loop through all Ajax links and change the format to offcanvas when // needed. Drupal.ajax.instances @@ -199,6 +203,9 @@ instance.options.data.dialogOptions = {}; } instance.options.data.dialogOptions.outsideInActiveEditableId = $(instance.element).parents('.outside-in-editable').attr('id'); + // Applies initial height to jQuery UI dialog widgets. + // See http://api.jqueryui.com/dialog for all dialog options. + instance.options.data.dialogOptions.height = height; instance.progress = {type: 'fullscreen'}; }); }