From 596d1ef581379d35104e2eb466797b5d89cc6f1a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 22 Mar 2010 07:53:34 -0400 Subject: [PATCH] Dialog: Use .height(0) instead of .hide(0) when determining the size of the non-content area of a dialog. Partial fix for #5392 - Dialog explicit height doesn't match given value from set option. --- ui/jquery.ui.dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 0291c3da0..4e164dbe8 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -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 -- 2.39.5