rem: dim.w = boxElement.parentNode.clientWidth; 
add: if (boxElement.parentNode.clientWidth > 0) { dim.w = boxElement.parentNode.clientWidth; } else { dim.w = 185; } 
context:   makeEditable: function(boxElement) {    commentid = boxElement.id.substr(8); //trim off initial "comment-"    log("edit: commentid is", commentid);        dim = getElementDimensions(boxElement);    if (dim.h < 120) {      dim.h = 120;      dim.w = boxElement.parentNode.clientWidth;      setElementDimensions(boxElement,dim);      boxElement.style.zIndex=1;    }    //EditableBox.origtext = scrapeText(e.src());    textarr = scrapeText(boxElement,true);    textarr[0]="";    EditableBox.origtexts[commentid] = textarr.join("");    log("edit: origtext is", EditableBox.origtexts[commentid]);    var action = "/save/" + document.body.id + "/" + commentid;    var submit = INPUT({'type':'button','value':'Spara'});    var cancel = INPUT({'type':'button','value':'Ångra'});    var form = FORM({'method':'POST','action':action},		   TEXTAREA({'name':'text','rows':'5','cols':'6'},EditableBox.origtexts[commentid]),		   BR(),		   submit,		   cancel		  );    connect(submit,'onclick',EditableBox.save);    connect(cancel,'onclick',EditableBox.cancel);    replaceChildNodes(boxElement,form);    addElementClass(boxElement,'editor');  },
meta: 8104	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8104/535131f6f6b4f6b2edd7c4f39521008cc6946aef/editable.js/buggy/ferenda/static/editable.js