1

我正在使用 Drupal 6 + dialog.module、Ctools(Axaj)、jQuery 1.3.2、jQuery UI

当我打开模式对话框窗口时,浏览器的滚动条被锁定。如果我使用鼠标滚轮,我可以滚动它,但不能通过单击或上键、下键功能来滚动。

有什么问题?我在这样的代码中找不到任何块函数:

站点/所有/模块/对话框/dialog.js

Drupal.CTools.AJAX.commands.dialog_display = function(command) {
    var $el = Drupal.Dialog.dialog,
      o = {},
      overrides = {};

    // Ensure that the dialog wasn't closed before the request completed.
    if ($el) {
      $el.html(command.output).dialog('show');

      // Merge all of the options together: defaults, overrides, and options
      // specified by the command, then apply them.
      overrides = {
        // Remove any previously added buttons.
        'buttons': {},
        'title': command.title,
        //'maxHeight': Math.floor($(window).height() * .8), // HACK // DISABLED
        'minHeight' : 700, // HACK // I've set it, and dialog window automagically adjusted - we need central part with content have height = auto, so there is no scroll bar, and hence no problems with autocomplete popups in dialog windows 
      };
      o = $.extend({}, Drupal.settings.Dialog.defaults, overrides, command.options);
      $.each(o, function (i, v) { $el.dialog('option', i, v); });

      if ($el.height() > o.maxHeight) {
        $el.dialog('option', 'height', o.maxHeight);
        $el.dialog('option', 'position', o.position);
        // This is really ugly, but dialog gives us no way to call _size() in a
        // sane way!
        $el.data('dialog')._size();
      }

      Drupal.attachBehaviors($el);
    }
  };

而且我在 css 文件中没有发现任何有趣的东西。有什么问题?

4

0 回答 0