Open Bug 1609361 Opened 5 years ago Updated 2 years ago

inspect(domElement) does not scroll to the right position

Categories

(DevTools :: Inspector, enhancement, P3)

72 Branch
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: dainius.dauksevicius, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

  1. Open some webpage.
  2. Open DevTools > Console.
  3. In the console evaluate inspect($('body')).

Actual results:

In v72:
Inspector scrolled to the node so that it is at the top, but did not take into the account search bar at the top, so selected node is behind the search and needs to be scrolled one line to be seen.

in dev and nightly:
Inspector scrolled to the bottom regardless of where the selected node is.

Expected results:

Ideally, I would expect inspected node to be selected and scrolled a couple of line away from the top, so I could see what's before the node (like in chrome)

This is calling an inspector function in the end (devtools/client/inspector/inspector.js#1990-2012 ), so I'm moving this to the inspector component.

Type: defect → enhancement
Component: Console → Inspector

Thanks for filing Dar, and sorry about the delay getting to this bug. Could you please provide a screenshot that explains what you mean by scrolling the inspector? I just to make sure I understand what the problem is.

Flags: needinfo?(dainius.dauksevicius)
Priority: -- → P3

Clear a needinfo that is pending on an inactive user.

Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE.

For more information, please visit auto_nag documentation.

Flags: needinfo?(dainius.dauksevicius)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.