Closed Bug 1427392 Opened 8 years ago Closed 8 years ago

Scroll into view the grid container when clicking on the inspect icon

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(firefox59 fixed)

RESOLVED FIXED
Firefox 59
Tracking Status
firefox59 --- fixed

People

(Reporter: gl, Assigned: gl)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

In the list of grid containers, we have the inspect icon button next to each grid container Rep that shows the box model highlighter when mouseover and on click it selects the node in the markup view. This is to add a scrollIntoView of that node when the inspect icon button is also clicked.
Comment on attachment 8939881 [details] Bug 1427392 - Scroll into view the grid container when clicking on the inspect icon. https://reviewboard.mozilla.org/r/209534/#review215878 ::: devtools/client/inspector/grids/components/GridItem.js:120 (Diff revision 1) > + setSelectedNode(nodeFront, "layout-panel"); > + nodeFront.scrollIntoView(); Both of these return promises that you should catch: `.catch(e => console.error(e))`.
Attachment #8939881 - Flags: review?(pbrosset) → review+
Pushed by gabriel.luong@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/d27d6f4af560 Scroll into view the grid container when clicking on the inspect icon. r=pbro
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: