Skip to content
Permalink
Browse files

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.
  • Loading branch information
scottgonzalez committed Mar 22, 2010
1 parent b46e8a5 commit 596d1ef581379d35104e2eb466797b5d89cc6f1a
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 596d1ef

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