Bug 1046803 - Use normal whitespace in editor pre tags. r=pbrosset
This commit is contained in:
@@ -247,6 +247,8 @@ function InplaceEditor(aOptions, aEvent)
|
||||
this.input.addEventListener("keyup", this._onKeyup, false);
|
||||
}
|
||||
|
||||
this._updateSize();
|
||||
|
||||
if (aOptions.start) {
|
||||
aOptions.start(this, aEvent);
|
||||
}
|
||||
@@ -364,7 +366,6 @@ InplaceEditor.prototype = {
|
||||
// account for the fact that after adding a newline the <pre> doesn't grow
|
||||
// unless there's text content on the line.
|
||||
width += 15;
|
||||
this._measurement.textContent += "M";
|
||||
this.input.style.height = this._measurement.offsetHeight + "px";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user