Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 647a937

Browse files
committed
[VarDumper] Scroll into view when searching
1 parent 91f6e69 commit 647a937

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,9 @@ function showCurrent(state)
504504
if (currentNode) {
505505
reveal(currentNode);
506506
highlight(root, currentNode, state.nodes);
507+
if ('scrollIntoView' in currentNode) {
508+
currentNode.scrollIntoView();
509+
}
507510
}
508511
counter.textContent = (state.isEmpty() ? 0 : state.idx + 1) + ' of ' + state.count();
509512
}

0 commit comments

Comments
 (0)