зеркало из https://github.com/mozilla/gecko-dev.git
Bug 988102 - Opening inspector scrolls the content page all the way to the top;r=bgrins
This commit is contained in:
Родитель
a66c936e57
Коммит
010788e170
|
@ -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(() => {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче