Skip to content

Commit

Permalink
0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
zsviczian committed Jul 30, 2023
1 parent d7936e3 commit 4001e28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "excalibrain",
"name": "ExcaliBrain",
"version": "0.2.4",
"version": "0.2.5",
"minAppVersion": "1.1.6",
"description": "A clean, intuitive and editable graph view for Obsidian",
"author": "Zsolt Viczian",
Expand Down
2 changes: 1 addition & 1 deletion src/Scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ export class Scene {
ea.targetView.clearDirty(); //hack to prevent excalidraw from saving the changes

excalidrawAPI.updateScene({appState: {viewBackgroundColor: settings.backgroundColor}});
if(settings.allowAutozoom) {
if(settings.allowAutozoom && !retainCentralNode) {
setTimeout(()=>excalidrawAPI.zoomToFit(ea.getViewElements(),settings.maxZoom,0.15),100);
}

Expand Down

0 comments on commit 4001e28

Please sign in to comment.