mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 801671 - Don't use cached bounds after scrolling, they use the previous scroll position. r=davidb
This commit is contained in:
parent
16f73f960a
commit
de93e571ec
@ -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'}};
|
||||
|
Loading…
Reference in New Issue
Block a user