JQuery UI and maxHeight Dialog in Internet Explorer

Here is my current code:

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

maxHeight works fine in Firefox, Chrome, etc., as expected, but IE 7 obviously has problems with it. Does anyone know how to make the user interface dialog use maxHeight in IE?

<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>
+3
source share
2 answers

This seems to be a long jQueryUI error - there is a workaround and patch in the comments for this link.

+5
source

The link that Dean pointed to has the latest update with a lot of work that worked for me:

, CSS 'vol7ron'; - :

$('#dialog')
   .dialog( { modal : true } )
   .css( { 'max-height' : '50px' } );

:

$("#DialogScroll").dialog({
    bgiframe: true,
    autoOpen: false,
    width: 550,
    modal: true,
    resizable: false,
    open: function (type, data) {
        $(this).parent().appendTo("form");
    },
    close: function () { }
}).css( { 'max-height' : '600px'} );
+3

Source: https://habr.com/ru/post/1781493/


All Articles