summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/ajax.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/ajax.js b/js/ajax.js
index 969f572..a4eb9b1 100644
--- a/js/ajax.js
+++ b/js/ajax.js
@@ -193,7 +193,11 @@
for (var $parent = $(node); $parent.get(0) != document && $parent.size() != 0; $parent = $parent.parent()) {
if ($parent.css('overflow') == 'scroll' || $parent.css('overflow') == 'auto') {
if (Drupal.viewsUi.resizeModal) {
- Drupal.viewsUi.resizeModal();
+ // If the modal is already at the max height, don't bother with
+ // this since the only reason to do it is to grow the modal.
+ if ($('.views-ui-dialog').height() < parseInt($(window).height() * .8)) {
+ Drupal.viewsUi.resizeModal();
+ }
}
return;
}