Drupal 6 + dialog.module、Ctools(Axaj)、jQuery 1.3.2、jQuery UI を使用しています
モーダル ダイアログ ウィンドウを開くと、ブラウザのスクロールバーがロックされます。マウスのスクロールホイールを使用するとスクロールできますが、クリックまたはキーアップ、キーダウン機能ではスクロールできません。
トラブルは何ですか?次のようなコードでブロック関数が見つかりません。
サイト/すべて/モジュール/dialog/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 ファイルに興味深いものは何も見つかりませんでした。問題は何ですか?