- this.updateTextSize.defer(100, this);
- return this;
- },
-
- updateTextSize: function()
- {
-
- var cw = Math.max(msgEl.offsetWidth, bodyEl.scrollWidth);
- Roo.log("guesed size: " + cw);
+
+ var cw = Math.max(msgEl.offsetWidth, msgEl.parentNode.scrollWidth);
+ //Roo.log("guesed size: " + JSON.stringify([cw,msgEl.offsetWidth, msgEl.parentNode.scrollWidth]));