]> source.dussan.org Git - jquery-ui.git/commitdiff
Fixed size calculations for dialogs.
authorScott González <scott.gonzalez@gmail.com>
Fri, 26 Mar 2010 01:58:08 +0000 (21:58 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 26 Mar 2010 01:58:08 +0000 (21:58 -0400)
Fixes #5392 - Dialog explicit height doesn't match given value from set option.

ui/jquery.ui.dialog.js

index 4e164dbe8a4751c52f7374cde145a4410ec14511..6e538b6e58ab48bcab12fa01bfa30d1439cd7d0e 100644 (file)
@@ -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