roojs-debug.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 22 Dec 2011 05:23:49 +0000 (13:23 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 22 Dec 2011 05:23:49 +0000 (13:23 +0800)
roojs-debug.js

index de5ebd0..5f03dcb 100644 (file)
@@ -30102,8 +30102,8 @@ Roo.MessageBox = function(){
             }
             msgEl.innerHTML = text || '&#160;';
       
-            var cw =  Math.max(msgEl.offsetWidth, bodyEl.scrollWidth);
-            Roo.log("guesed size: " + JSON.stringify([cw,msgEl.offsetWidth, bodyEl.scrollWidth]));
+            var cw =  Math.max(msgEl.offsetWidth, msgEl.parentNode.scrollWidth);
+            Roo.log("guesed size: " + JSON.stringify([cw,msgEl.offsetWidth, msgEl.parentNode.scrollWidth]));
             var w = Math.max(
                     Math.min(opt.width || cw , this.maxWidth), 
                     Math.max(opt.minWidth || this.minWidth, bwidth)