зеркало из https://github.com/mozilla/gecko-dev.git
Bug 333045, select1 initialized by instance data on form load has wrong size, r=allan+aaronr
This commit is contained in:
Родитель
4ad7a7f650
Коммит
3687211931
|
@ -684,6 +684,7 @@
|
||||||
this.inputField.value = "";
|
this.inputField.value = "";
|
||||||
this._selected.setActive(false);
|
this._selected.setActive(false);
|
||||||
this._selected = null;
|
this._selected = null;
|
||||||
|
this.refreshWidth();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -700,14 +701,16 @@
|
||||||
if (envelope.nodeType == Node.ELEMENT_NODE) {
|
if (envelope.nodeType == Node.ELEMENT_NODE) {
|
||||||
textNode = envelope.firstChild;
|
textNode = envelope.firstChild;
|
||||||
if (newValue == textNode.nodeValue) {
|
if (newValue == textNode.nodeValue) {
|
||||||
// value in instance data already selected. Nothin' left
|
// Value in instance data already selected. Need to only
|
||||||
// to do.
|
// refresh the width.
|
||||||
|
this.refreshWidth();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (newValue == contentEnvelope.nodeValue) {
|
if (newValue == contentEnvelope.nodeValue) {
|
||||||
// value in instance data already selected. Nothin' left
|
// Value in instance data already selected. Need to only
|
||||||
// to do.
|
// refresh the width.
|
||||||
|
this.refreshWidth();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче