Commit d060f5b8 authored by Skylot's avatar Skylot

gui: scroll to node when sync with editor

parent 7b70d617
......@@ -320,6 +320,7 @@ public class MainWindow extends JFrame {
TreePath path = new TreePath(pathNodes);
tree.setSelectionPath(path);
tree.makeVisible(path);
tree.scrollPathToVisible(path);
tree.requestFocus();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment