Browse Source

fixed little bug in layoutengine and it's brother

flowchartTest
Alex de Mulder 9 years ago
parent
commit
54f99f7280
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/network/modules/LayoutEngine.js

+ 1
- 1
lib/network/modules/LayoutEngine.js View File

@ -83,7 +83,7 @@ class LayoutEngine {
else if (typeof allOptions.physics === 'object') { else if (typeof allOptions.physics === 'object') {
this.optionsBackup.physics = {solver:'barnesHut'}; this.optionsBackup.physics = {solver:'barnesHut'};
if (allOptions.physics.solver !== undefined) { if (allOptions.physics.solver !== undefined) {
this.optionsBackup.physics = {solver:options.physics.solver};
this.optionsBackup.physics = {solver:allOptions.physics.solver};
} }
allOptions.physics['solver'] = 'hierarchicalRepulsion'; allOptions.physics['solver'] = 'hierarchicalRepulsion';
} }

Loading…
Cancel
Save