I have a graph panel with an SVG. The nodes in the SVG are listed in a separate panel. I would like for when a node is clicked in the node list, the SVG will scroll to that specific node. Each node is represented by a rectangle shape. However, I noticed that only the top border of the node is visible, while the rest of the node remains out of view. Is there a solution to this issue? (using either Javascript or ExtJS)
Here is the code snippet I am using:
function selectRectangle(Id){
var element = Ext.get(Id);
element.scrollIntoView(Ext.get('graph-panel-body'), true);}