Skip to content

Commit

Permalink
Fixed size calculations for dialogs.
Browse files Browse the repository at this point in the history
Fixes #5392 - Dialog explicit height doesn't match given value from set option.
  • Loading branch information
scottgonzalez committed Mar 26, 2010
1 parent 9786a19 commit b297b3f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ui/jquery.ui.dialog.js
Expand Up @@ -622,8 +622,11 @@ $.widget("ui.dialog", {

// reset content sizing
// hide for non content measurement because height: 0 doesn't work in IE quirks mode (see #4350)
this.element.css('width', 'auto')
.height(0);
this.element.css({
width: 'auto',
minHeight: 0,
height: 0
});

// reset wrapper sizing
// determine the height of all the non-content elements
Expand Down

0 comments on commit b297b3f

Please sign in to comment.