mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 599529 - Form helper moves input fields out of view [r=mfinkle]
This commit is contained in:
parent
28e11c425f
commit
f375b6e378
@ -1813,12 +1813,18 @@ var FormHelperUI = {
|
|||||||
|
|
||||||
this._updateContainer(lastElement, this._currentElement);
|
this._updateContainer(lastElement, this._currentElement);
|
||||||
this._zoom(Rect.fromRect(aElement.rect), Rect.fromRect(aElement.caretRect));
|
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() {
|
hide: function formHelperHide() {
|
||||||
if (!this._open)
|
if (!this._open)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Restore the scroll synchonisation
|
||||||
|
Browser.selectedBrowser.scrollSync = true;
|
||||||
|
|
||||||
// reset current Element and Caret Rect
|
// reset current Element and Caret Rect
|
||||||
this._currentElementRect = null;
|
this._currentElementRect = null;
|
||||||
this._currentCaretRect = null;
|
this._currentCaretRect = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user