mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 641117 - Autocomplete suggestions could be show on the wrong element [r=mfinkle]
This commit is contained in:
parent
48ce2bddcb
commit
c884928520
@ -888,6 +888,10 @@ var FormHelperUI = {
|
||||
let self = this;
|
||||
window.addEventListener("AnimatedZoomEnd", function() {
|
||||
window.removeEventListener("AnimatedZoomEnd", arguments.callee, true);
|
||||
// Ensure the current element has not changed during this interval
|
||||
if (self._currentElement != aElement)
|
||||
return;
|
||||
|
||||
self._updateSuggestionsFor(aElement);
|
||||
}, true);
|
||||
return;
|
||||
@ -1082,9 +1086,14 @@ var FormHelperUI = {
|
||||
// the scrollX/scrollY position can change because of the animated zoom so
|
||||
// delay the caret adjustment
|
||||
if (AnimatedZoom.isZooming()) {
|
||||
let currentElement = this._currentElement;
|
||||
let self = this;
|
||||
window.addEventListener("AnimatedZoomEnd", function() {
|
||||
window.removeEventListener("AnimatedZoomEnd", arguments.callee, true);
|
||||
// Ensure the current element has not changed during this interval
|
||||
if (self._currentElement != currentElement)
|
||||
return;
|
||||
|
||||
self._ensureCaretVisible(aCaretRect);
|
||||
}, true);
|
||||
return;
|
||||
|
@ -143,6 +143,7 @@
|
||||
#form-helper-suggestions {
|
||||
margin: 0;
|
||||
color: black;
|
||||
max-width: 0;
|
||||
}
|
||||
|
||||
#form-helper-suggestions > .autorepeatbutton-down,
|
||||
|
Loading…
x
Reference in New Issue
Block a user