var saveButtonX = this.saveButton.getX(); var buttonsWidth = this.cancelButton.getX() - saveButtonX + this.cancelButton.getWidth() + saveButtonX - (this.field.getX() + this.field.getWidth()); this.field.setWidth(this.form.getWidth() - buttonsWidth); } 
if (this.multiline) { var formParent = getEl(this.form.dom.parentNode); formParent.beginMeasure(); var parentWidth = formParent.getBox(true, true).width; formParent.endMeasure();  this.field.setWidth(parentWidth); } else { this.el.beginMeasure(); var elWidth = this.el.getBox(true, true).width + this.el.getPadding("lr") + this.el.getBorderWidth("lr"); this.el.endMeasure();  this.saveButton.beginMeasure(); this.cancelButton.beginMeasure(); var saveButtonX = this.saveButton.getX() - this.saveButton.getPadding("lr") - this.saveButton.getBorderWidth("lr"); var x2 = this.cancelButton.getX() + this.cancelButton.getBox(true, true).width + this.cancelButton.getPadding("lr") + this.cancelButton.getBorderWidth("lr"); var buttonsWidth = x2 - saveButtonX; this.cancelButton.endMeasure(); this.saveButton.endMeasure();  this.field.setWidth(elWidth - buttonsWidth); 
    fitWidthToParent: function() {        if (this.editing) {            if (this.multiline) {                this.form.setWidth(getEl(this.form.dom.parentNode).getWidth());                this.field.setWidth(this.form.getWidth());            } else {                this.el.beginMeasure();                this.form.setWidth(this.el.getWidth());                this.el.endMeasure();                var saveButtonX = this.saveButton.getX();                var buttonsWidth = this.cancelButton.getX() - saveButtonX +                                   this.cancelButton.getWidth() + saveButtonX -                                   (this.field.getX() + this.field.getWidth());                this.field.setWidth(this.form.getWidth() - buttonsWidth);            }        }    },
4441	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4441/315b6987b56f5da16541db29d139bf1ecbdfba22/widgets.js/buggy/htdocs/scripts/rb/widgets.js