lutzroeder / netron

Visualizer for neural network, deep learning and machine learning models
https://netron.app
MIT License
27.71k stars 2.75k forks source link

Auto adjust scroll position after a sidebar is opened #1344

Closed beru closed 2 weeks ago

beru commented 2 weeks ago

There's a case that selected node is hidden under a just opened sidebar.

Let me explaint this further. When a node is selected,

And it looks like the auto adjustment of scroll position is carried out before the sidebar is opened. This causes the problem when the following conditions are met.

scroll

Users can manually scroll the view to see the selected node after the sidebar is shown. But I just thought (the improvement of) automatic scrolling would be helpful.

lutzroeder commented 2 weeks ago

@beru can you investigate and submit a pull request.