Skip to content

Commit 596d1ef

Browse files
committed
Dialog: Use .height(0) instead of .hide(0) when determining the size of the non-content area of a dialog.
Partial fix for #5392 - Dialog explicit height doesn't match given value from set option.
1 parent b46e8a5 commit 596d1ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ $.widget("ui.dialog", {
623623
// reset content sizing
624624
// hide for non content measurement because height: 0 doesn't work in IE quirks mode (see #4350)
625625
this.element.css('width', 'auto')
626-
.hide();
626+
.height(0);
627627

628628
// reset wrapper sizing
629629
// determine the height of all the non-content elements

0 commit comments

Comments
 (0)