Open Bug 1388248 Opened 8 years ago Updated 3 years ago

Scroll when expanding last message ObjectInspector

Categories

(DevTools :: Console, enhancement, P2)

enhancement

Tracking

(firefox57 affected)

Tracking Status
firefox57 --- affected

People

(Reporter: nchevobbe, Unassigned)

Details

Steps to reproduce: 1. Open the console 2. Log multiple messages so you have a scrollbar in the console output 3. Log `({a: 1})` 4. Expand the object Expected results: The properties of the expanded object are visible Actual results: The properties are under the fold. --- We could try to scroll the expanded node on the top of the console output. This needs hooks in the ObjectInspector component (onNodeExpand, onNodeCollapse, …) that we could use in the console to scroll the properties into view.
Priority: -- → P2
Whiteboard: [console-html][triage]
Flags: qe-verify?
Priority: P2 → P4
Whiteboard: [console-html][triage] → [reserve-console-html]
Summary: Scroll when expanding the ObjectInspector → Scroll when expanding last message ObjectInspector
I have another case, which sounds more like a bug. Steps to reproduce: 1. Go to `data:text/html,<script>for (i =0; i < 100; i++) {console.log("item", i)}</script><ol>Steps to reproduce:<li>Open the console</li><make sure you're scrolled at the bottom</li><li>Click on this button <button onClick="console.dir({a: 1, b: 2});">Add console.dir<button></li><li>Click on this button <button onClick="console.dir({a: 1, b: 2});">Add console.dir<button>` 2. Follow the instructions Expected results: When clicking the second button, the console is scrolled to the bottom Actual results: The console does not scroll (I only see the top of the first console.dir log) --- Because the first console.dir expands, the console is not scrolled to the bottom anymore, and when clicking on the second button, our `shouldScrollToBottom` function returns false.
Flags: qe-verify?
Priority: P4 → P2
Whiteboard: [reserve-console-html] → [newconsole-mvp]
Whiteboard: [newconsole-mvp]
Product: Firefox → DevTools
Type: defect → enhancement
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.