ang-jsoneditor icon indicating copy to clipboard operation
ang-jsoneditor copied to clipboard

Search in Tree mode not scrolling to element found

Open arvindram11 opened this issue 4 years ago • 1 comments

Using the ang-jsoneditor and loading a json file that is large enough to take up more than the vertical screen height. When searching for something that is at the bottom of the json tree, the searched item is found but the control does not auto-scroll to bring the item into display.

Stackblitz example.

In the above (forked) example, search for Blah in the first component. If finds the 2 instances, but it does not bring them into view. Doing the same thing in the native json-editor works correctly.

arvindram11 avatar Sep 25 '20 22:09 arvindram11

:host ::ng-deep json-editor, :host ::ng-deep json-editor .jsoneditor, :host ::ng-deep json-editor > div, :host ::ng-deep json-editor jsoneditor-outer { height: 500px; }

use this it will fix your problem. I was also facing the same issue

ravithesun02 avatar Nov 12 '21 11:11 ravithesun02