Skip to content
Permalink
Browse files

Fixed size calculations for dialogs.

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 b297b3fa6a1e4b6cba735a10ca03a6175f8eda3a
Showing with 5 additions and 2 deletions.
  1. +5 −2 ui/jquery.ui.dialog.js
@@ -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

0 comments on commit b297b3f

Please sign in to comment.
You can’t perform that action at this time.