var parentWidth = getEl(this.el.dom.parentNode).getWidth(); var elWidth = this.el.getWidth();  this.form.setWidth( Math.min(elWidth + (parentWidth - elWidth) / 2, parentWidth)); 
this.el.beginMeasure(); this.form.setWidth(this.el.getWidth()); this.el.endMeasure(); 
	fitWidthToParent: function() {		if (this.editing) {			if (this.multiline) {				this.form.setWidth(getEl(this.form.dom.parentNode).getWidth());				this.field.setWidth(this.form.getWidth());			} else {				var parentWidth = getEl(this.el.dom.parentNode).getWidth();				var elWidth = this.el.getWidth();				this.form.setWidth(					Math.min(elWidth + (parentWidth - elWidth) / 2,							 parentWidth));				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/b0a704a1c9cdc148a7cd3f07d1a3be819f3b775a/widgets.js/buggy/htdocs/scripts/rb/widgets.js