Roo/MessageBox.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 22 Dec 2011 05:11:37 +0000 (13:11 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 22 Dec 2011 05:11:37 +0000 (13:11 +0800)
Roo/MessageBox.js

index 17adc4d..77ffe04 100644 (file)
@@ -170,6 +170,13 @@ Roo.MessageBox = function(){
                 dlg.resizeTo(this.maxWidth, 100); // resize first so content is never clipped from previous shows
             }
             msgEl.innerHTML = text || '&#160;';
+            updateTextSize.defer(100);
+            
+        },
+        
+        updateTextSize: function()
+        {
+        
             var cw =  Math.max(msgEl.offsetWidth, msgEl.scrollWidth);
             Roo.log("guesed size: " + cw);
             var w = Math.max(