r2048 - trunk/ui

r2048 - trunk/ui


Author: scott.gonzalez
Date: Sun Feb 8 18:32:43 2009
New Revision: 2048
Modified:
trunk/ui/ui.dialog.js
Log:
Dialog: Don't allow the height of the content area to be negative.
Modified: trunk/ui/ui.dialog.js
==============================================================================
--- trunk/ui/ui.dialog.js    (original)
+++ trunk/ui/ui.dialog.js    Sun Feb 8 18:32:43 2009
@@ -469,7 +469,7 @@
                minHeight: Math.max(options.minHeight - nonContentHeight, 0),
                height: options.height == 'auto'
                    ? 'auto'
-                    : options.height - nonContentHeight
+                    : Math.max(options.height - nonContentHeight, 0)
            });
    }
});