From 0413807dfb45d44ae513d8522f6bc29b42ea8db1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 9 Feb 2009 02:32:43 +0000 Subject: [PATCH] Dialog: Don't allow the height of the content area to be negative. --- ui/ui.dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 52a9d21a6..fb3def446 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -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) }); } }); -- 2.39.5