]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Use .height(0) instead of .hide(0) when determining the size of the non-conte...
authorScott González <scott.gonzalez@gmail.com>
Mon, 22 Mar 2010 11:53:34 +0000 (07:53 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 22 Mar 2010 11:53:34 +0000 (07:53 -0400)
Partial fix for #5392 - Dialog explicit height doesn't match given value from set option.

ui/jquery.ui.dialog.js

index 0291c3da06ad3db2e2d2c70d3778fb89e8487e16..4e164dbe8a4751c52f7374cde145a4410ec14511 100644 (file)
@@ -623,7 +623,7 @@ $.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')
-                       .hide();
+                       .height(0);
 
                // reset wrapper sizing
                // determine the height of all the non-content elements