projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ccbac4
)
Roo/MessageBox.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 22 Dec 2011 05:11:37 +0000
(13:11 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 22 Dec 2011 05:11:37 +0000
(13:11 +0800)
Roo/MessageBox.js
patch
|
blob
|
history
diff --git
a/Roo/MessageBox.js
b/Roo/MessageBox.js
index
17adc4d
..
77ffe04
100644
(file)
--- a/
Roo/MessageBox.js
+++ b/
Roo/MessageBox.js
@@
-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 || ' ';
+ updateTextSize.defer(100);
+
+ },
+
+ updateTextSize: function()
+ {
+
var cw = Math.max(msgEl.offsetWidth, msgEl.scrollWidth);
Roo.log("guesed size: " + cw);
var w = Math.max(