Skip to content

Commit

Permalink
Dialog: Don't allow the height of the content area to be negative.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Feb 9, 2009
1 parent 615127e commit 0413807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/ui.dialog.js
Expand Up @@ -469,7 +469,7 @@ $.widget("ui.dialog", {
minHeight: Math.max(options.minHeight - nonContentHeight, 0),
height: options.height == 'auto'
? 'auto'
: options.height - nonContentHeight
: Math.max(options.height - nonContentHeight, 0)
});
}
});
Expand Down

0 comments on commit 0413807

Please sign in to comment.