Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search in Tree mode not scrolling to element found #76

Open
arvindram11 opened this issue Sep 25, 2020 · 1 comment
Open

Search in Tree mode not scrolling to element found #76

arvindram11 opened this issue Sep 25, 2020 · 1 comment

Comments

@arvindram11
Copy link

arvindram11 commented Sep 25, 2020

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.

@ravithesun02
Copy link

: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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants