Bug 801671 - Don't use cached bounds after scrolling, they use the previous scroll position. r=davidb, a=bajaj

This commit is contained in:
Eitan Isaacson 2012-10-17 10:23:26 -07:00
Родитель 8444af4b03
Коммит be608ecc33
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -129,21 +129,23 @@ VisualPresenter.prototype = {
BORDER_PADDING: 2,
viewportChanged: function VisualPresenter_viewportChanged(aWindow) {
if (this._currentContext)
if (this._currentAccessible) {
let context = new PresenterContext(this._currentAccessible);
return {
type: this.type,
details: {
method: 'show',
bounds: this._currentContext.bounds,
bounds: context.bounds,
padding: this.BORDER_PADDING
}
};
}
return null;
},
pivotChanged: function VisualPresenter_pivotChanged(aContext, aReason) {
this._currentContext = aContext;
this._currentAccessible = aContext.accessible;
if (!aContext.accessible)
return {type: this.type, details: {method: 'hide'}};