context:     updateLayout: function(initial, forceAll, extraWidth)    {        if (this.fixedWidth)        {            this.box.style.left = (this.targetOffset.x) + "px";            this.box.style.top = (this.targetOffset.y) + "px";            var w = this.target.offsetWidth;            var h = this.target.offsetHeight;            this.input.style.width = w + "px";            this.input.style.height = (h-3) + "px";        }        else        {            if (initial || forceAll)            {                this.box.style.left = this.targetOffset.x + "px";                this.box.style.top = this.targetOffset.y + "px";            }            var approxTextWidth = this.textSize.width;            var maxWidth = (currentPanel.panelNode.scrollWidth - this.targetOffset.x)                - this.outerMargin;            var wrapped = initial                ? this.noWrap && this.targetSize.height > this.textSize.height+3                : this.noWrap && approxTextWidth > maxWidth;            if (wrapped)            {                var style = this.target.ownerDocument.defaultView.getComputedStyle(this.target, "");                targetMargin = parseInt(style.marginLeft) + parseInt(style.marginRight);                // Make the width fit the remaining x-space from the offset to the far right                approxTextWidth = maxWidth - targetMargin;                this.input.style.width = "100%";                this.box.style.width = approxTextWidth + "px";            }            else            {                // Make the input one character wider than the text value so that                // typing does not ever cause the textbox to scroll                var charWidth = this.textSize.width / Math.max(this.input.value.length, 1);                                // Sometimes we need to make the editor a little wider, specifically when                // an overflow happens, otherwise it will scroll off some text on the left                if (extraWidth)                    charWidth *= extraWidth;                                var inputWidth = approxTextWidth + charWidth;                if (initial)                    this.box.style.width = "auto";                else                {                    var xDiff = this.box.scrollWidth - this.input.offsetWidth;                    this.box.style.width = (inputWidth + xDiff) + "px";                }                this.input.style.width = inputWidth + "px";            }            this.expander.style.width = approxTextWidth + "px";            this.expander.style.height = (this.textSize.height-3) + "px";        }                if (forceAll)            scrollIntoCenterView(this.box, null, true);    }
meta: 7450	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7450/e1d42ad3fad63b72826a4e2ed0726866484c9ac3/editor.js/clean/extension/content/firebug/editor.js