Bug 988102 - Opening inspector scrolls the content page all the way to the top;r=bgrins

This commit is contained in:
Michael Ratcliffe 2014-04-14 15:33:06 +01:00
parent ddf565a782
commit 30e00019be
2 changed files with 1 additions and 8 deletions

View File

@ -289,9 +289,7 @@ MarkupView.prototype = {
let done = this._inspector.updating("markup-view");
if (selection.isNode()) {
if (this._shouldNewSelectionBeHighlighted()) {
this._brieflyShowBoxModel(selection.nodeFront, {
scrollIntoView: true
});
this._brieflyShowBoxModel(selection.nodeFront, {});
}
this.showNode(selection.nodeFront, true).then(() => {

View File

@ -107,7 +107,6 @@ let HighlighterActor = protocol.ActorClass({
}, {
request: {
node: Arg(0, "domnode"),
scrollIntoView: Option(1),
region: Option(1)
}
}),
@ -475,10 +474,6 @@ BoxModelHighlighter.prototype = {
this._attachPageListeners();
this._update();
this._trackMutations();
if (options.scrollIntoView) {
this.chromeLayoutHelper.scrollIntoViewIfNeeded(node);
}
},
_trackMutations: function() {