Bug 599529 - Form helper moves input fields out of view [r=mfinkle]

This commit is contained in:
Vivien Nicolas 2010-11-02 16:27:54 +01:00
parent 28e11c425f
commit f375b6e378

View File

@ -1813,12 +1813,18 @@ var FormHelperUI = {
this._updateContainer(lastElement, this._currentElement);
this._zoom(Rect.fromRect(aElement.rect), Rect.fromRect(aElement.caretRect));
// Prevent the view to scroll automatically while typing
Browser.selectedBrowser.scrollSync = false;
},
hide: function formHelperHide() {
if (!this._open)
return;
// Restore the scroll synchonisation
Browser.selectedBrowser.scrollSync = true;
// reset current Element and Caret Rect
this._currentElementRect = null;
this._currentCaretRect = null;