- 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]));