From 7de25aa9f3af141594b726b32a6468acbb004d27 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 22 Dec 2011 13:11:57 +0800 Subject: [PATCH] roojs-debug.js --- roojs-debug.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roojs-debug.js b/roojs-debug.js index a4e52db882..eca62c1b35 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -30101,6 +30101,13 @@ Roo.MessageBox = function(){ dlg.resizeTo(this.maxWidth, 100); // resize first so content is never clipped from previous shows } msgEl.innerHTML = text || ' '; + updateTextSize.defer(100); + return this; + }, + + updateTextSize: function() + { + var cw = Math.max(msgEl.offsetWidth, msgEl.scrollWidth); Roo.log("guesed size: " + cw); var w = Math.max( -- 2.39.2