Browse Source

fixed little bug in configurator

flowchartTest
Alex de Mulder 9 years ago
parent
commit
719a16aec0
3 changed files with 2357 additions and 2432 deletions
  1. +2339
    -2337
      dist/vis.js
  2. +4
    -1
      lib/shared/Configurator.js
  3. +14
    -94
      test/networkTest.html

+ 2339
- 2337
dist/vis.js
File diff suppressed because it is too large
View File


+ 4
- 1
lib/shared/Configurator.js View File

@ -313,7 +313,10 @@ class Configurator {
range.step = step; range.step = step;
if (value !== undefined) { if (value !== undefined) {
if (value * 0.1 < min) {
if (value < 0 && value * 2 < min) {
range.min = value*2;
}
else if (value * 0.1 < min) {
range.min = value / 10; range.min = value / 10;
} }
if (value * 2 > max && max !== 1) { if (value * 2 > max && max !== 1) {

+ 14
- 94
test/networkTest.html
File diff suppressed because it is too large
View File


Loading…
Cancel
Save