Roo/MessageBox.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 21 Nov 2011 09:55:09 +0000 (17:55 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 21 Nov 2011 09:55:09 +0000 (17:55 +0800)
Roo/MessageBox.js

index 4905e76..ad95975 100644 (file)
@@ -178,6 +178,14 @@ Roo.MessageBox = function(){
             if(dlg.isVisible()){
                 dlg.fixedcenter = false;
             }
+            if ( bodyEl.getHeight() > (Roo.lib.Dom.getViewHeight() - 100)) {
+                bodyEl.setHeight ( Roo.lib.Dom.getViewHeight() - 100 );
+                bodyEl.el.dom.style.overflow = '';
+            } else {
+                bodyEl.el.dom.style.height = '';
+                bodyEl.el.dom.style.overflow = '';
+            }
+            
             dlg.setContentSize(w, bodyEl.getHeight());
             if(dlg.isVisible()){
                 dlg.fixedcenter = true;