tulios / json-viewer

It is a Chrome extension for printing JSON and JSONP.
https://chrome.google.com/webstore/detail/json-viewer/gbmdgpbipfallnflgajpaliibnhdgobh
MIT License
3.31k stars 678 forks source link

Option to change scroll position for search results #234

Open shemetz opened 5 years ago

shemetz commented 5 years ago

Currently, when you search for something in the document and hit Enter, the screen scrolls down to find it but stops scrolling almost immediately after finding it. This causes the highlighted result to be very low on my screen, and prevents me from seeing useful context for it.

The standard Chrome search, if it needs to scroll down to show the next search result, will scroll until the highlighted result is in the middle of the screen - about 20 lines down, for me (on my screen which shows up to 43 json lines). However, this extension's search will scroll down to put it near the bottom - about 41 lines down for me, only putting a single extra line below it.

It would be great to change this behavior, even if just as a settings option.