Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
220
How to ensure a node to get into visible area when I find it?
posted


When I find a tree node of the WebDataTree by traversal, I want it to get into visible area to ensure it is visible to client. Is there a method like scrollTo can help me to realize it?

My WebDataTree resides in a div element. When I find the node, I can ensure all of its ancestor nodes to be expanded by JSOM, and when it exceeds the visible area, the scroll bar of div element will appear. But the ideal result is the div will scroll to ensure the node appear in the visible area.

Thanks!