Bug 333045, select1 initialized by instance data on form load has wrong size, r=allan+aaronr
git-svn-id: svn://10.0.0.236/trunk@194014 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -684,6 +684,7 @@
|
||||
this.inputField.value = "";
|
||||
this._selected.setActive(false);
|
||||
this._selected = null;
|
||||
this.refreshWidth();
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -700,14 +701,16 @@
|
||||
if (envelope.nodeType == Node.ELEMENT_NODE) {
|
||||
textNode = envelope.firstChild;
|
||||
if (newValue == textNode.nodeValue) {
|
||||
// value in instance data already selected. Nothin' left
|
||||
// to do.
|
||||
// Value in instance data already selected. Need to only
|
||||
// refresh the width.
|
||||
this.refreshWidth();
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
if (newValue == contentEnvelope.nodeValue) {
|
||||
// value in instance data already selected. Nothin' left
|
||||
// to do.
|
||||
// Value in instance data already selected. Need to only
|
||||
// refresh the width.
|
||||
this.refreshWidth();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user