Internet Explorer中的jQuery UI Dialog和maxHeight

jlr*_*lin 3 javascript css jquery jquery-ui jquery-dialog

这是我目前的代码:

$("#DialogScroll").dialog({
                bgiframe: true,
                autoOpen: false,
                maxHeight: 600,
                width: 550,
                modal: true,
                resizable: false,
                open: function (type, data) {
                    $(this).parent().appendTo("form");
                },
                close: function () { }
            });
Run Code Online (Sandbox Code Playgroud)

maxHeight在预期的Firefox,Chrome等中运行良好,但IE 7显然存在问题.有没有人知道如何让UI对话框在IE中使用maxHeight?

<div id="DialogScroll" class="dialog" style="display:none; ">
        <table>
            <thead>
                <tr>
                    <th>
                        State Code
                    </th>
                    <th>
                        State Name
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Literal ID="litStates" runat="server" />
            </tbody>
        </table>
    </div>
Run Code Online (Sandbox Code Playgroud)

小智 5

看起来它是一个长期存在的开放jQueryUI错误 - 在这个链接中有一个解决方法中列出的解决方法和补丁.