Skip to content

Commit b297b3f

Browse files
committed
Fixed size calculations for dialogs.
Fixes #5392 - Dialog explicit height doesn't match given value from set option.
1 parent 9786a19 commit b297b3f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ui/jquery.ui.dialog.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,11 @@ $.widget("ui.dialog", {
622622

623623
// reset content sizing
624624
// hide for non content measurement because height: 0 doesn't work in IE quirks mode (see #4350)
625-
this.element.css('width', 'auto')
626-
.height(0);
625+
this.element.css({
626+
width: 'auto',
627+
minHeight: 0,
628+
height: 0
629+
});
627630

628631
// reset wrapper sizing
629632
// determine the height of all the non-content elements

0 commit comments

Comments
 (0)