From: Alan Knowles Date: Tue, 17 Jan 2012 02:43:29 +0000 (+0800) Subject: Roo/MessageBox.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=2b0f89553f31474a5620852842e39e27ef338309 Roo/MessageBox.js --- diff --git a/Roo/MessageBox.js b/Roo/MessageBox.js index 189971efd2..f702282ea6 100644 --- a/Roo/MessageBox.js +++ b/Roo/MessageBox.js @@ -183,16 +183,18 @@ Roo.MessageBox = function(){ if(dlg.isVisible()){ dlg.fixedcenter = false; } - // to big, make it scoll. + // to big, make it scroll. = But as usual stupid IE does not support + // !important.. + if ( bodyEl.getHeight() > (Roo.lib.Dom.getViewHeight() - 100)) { bodyEl.setHeight ( Roo.lib.Dom.getViewHeight() - 100 ); - bodyEl.dom.style.overflowY = 'auto !important'; + bodyEl.dom.style.overflowY = 'auto' + ( Roo.isIE ? '' : ' !important'); } else { bodyEl.dom.style.height = ''; bodyEl.dom.style.overflowY = ''; } if (cw > w) { - bodyEl.dom.style.overflowX = 'auto !important'; + bodyEl.dom.style.get = 'auto' + ( Roo.isIE ? '' : ' !important'); } else { bodyEl.dom.style.overflowX = ''; }