From: Scott González Date: Fri, 26 Mar 2010 01:58:08 +0000 (-0400) Subject: Fixed size calculations for dialogs. X-Git-Tag: 1.8.1~5^2~62^2~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b297b3fa6a1e4b6cba735a10ca03a6175f8eda3a;p=jquery-ui.git Fixed size calculations for dialogs. Fixes #5392 - Dialog explicit height doesn't match given value from set option. --- diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 4e164dbe8..6e538b6e5 100644 --- a/ui/jquery.ui.dialog.js +++ b/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