Reputation: 1614
Here's 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 great in Firefox, Chrome, etc. as expected, but IE 7 obviously has a problem with it. Does anyone have any idea how to get the UI dialog to 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>
Upvotes: 3
Views: 4382
Reputation: 2915
The link that Dean pointed to has a recent update with a great work-around that worked for me:
Additionally you could apply your own CSS by 'vol7ron'; something like:
$('#dialog')
.dialog( { modal : true } )
.css( { 'max-height' : '50px' } );
Therefore, in your case:
$("#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'} );
Upvotes: 3
Reputation: 3461
Looks like it is a long standing open jQueryUI bug - at this link there's a work-around and a patch listed in the comments.
Upvotes: 5