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

[BUG] - Position isn't restored upon loading an app if graph isn't in the leftmost pane #6

Open
Yoksven opened this issue Apr 7, 2022 · 3 comments

Comments

@Yoksven
Copy link

Yoksven commented Apr 7, 2022

If I have multiple panes, one of them is the graph, then if I close Obsidian and open it back again, position is restored upon loading only if the graph is in the leftmost pane or in is the only pane (which is treated as leftmost, I assume), but if the graph is in any pane other then the left one - the restoring doesn't occur upon loading the app. Restoring still works after loading if I use a shortcut or reload the graph or open a new pane. It's just about the first loading of the app.

@Yoksven
Copy link
Author

Yoksven commented Apr 7, 2022

I think I'm starting to realize that this could be impossible to fix, because the plugin can only restore the position in the active pane and upon loading it's always the leftmost pane that is active. Unless there is a completely different way this could be implemented, which doesn't rely on the pane being active, but I'm not sure if that's possible (I'm not a programmer). A bit unfortunate if that's the limitation we're facing, but oh well. Thanks for the awesome plugin anyway.

@Sanqui
Copy link
Owner

Sanqui commented Apr 7, 2022

I should be able to fix this, thanks for the bug report!

@Yoksven
Copy link
Author

Yoksven commented Apr 7, 2022

Nice! Good luck.

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