谷歌浏览器中的jQuery UI对话框阻止窗口滚动条

Sat*_*and 8 jquery google-chrome jquery-ui

我在使用jQuery UI对话框时遇到问题.当我在jQuery对话框中打开一张照片时,它会冻结窗口滚动条.我无法使用鼠标指针向上或向下移动页面.此问题仅存在于Google Chrome中.它在Mozilla和Internet Explorer中运行良好.
有没有人能解决这个问题?

小智 0

我过去通过在初始化对话框之前执行以下操作修复了类似的故障:

$.ui.dialog.prototype._makeDraggable = function () {
    this.uiDialog.draggable({
        containment: false,
        handle: "div.ui-widget-header",
        cancel: "#dialogId"
    });
};
Run Code Online (Sandbox Code Playgroud)