Browse Source

Fixed #1541: Timeline and Graph2d did not load synchronously anymore

codeClimate
jos 9 years ago
parent
commit
f171328c10
3 changed files with 7 additions and 3 deletions
  1. +2
    -0
      HISTORY.md
  2. +2
    -0
      lib/timeline/Graph2d.js
  3. +3
    -3
      lib/timeline/Timeline.js

+ 2
- 0
HISTORY.md View File

@ -24,6 +24,7 @@ http://visjs.org
- Fixed #1580: Invisible timeline/graph should not be drawn, as most inputs are invalid
- Fixed #1521: Prevent items from staying stuck to the left side of the viewport.
- Fixed #1592: Emit a "changed" event after each redraw.
- Fixed #1541: Timeline and Graph2d did not load synchronously anymore.
### Graph2d
@ -34,6 +35,7 @@ http://visjs.org
- Cleanup of linegraph's event handling.
- Fixed #1017: Fixed minWidth behavior for bars.
- Fixes #1557: Fix default axis formatting function.
- Fixed #1541: Timeline and Graph2d did not load synchronously anymore.
## 2016-01-08, version 4.12.0

+ 2
- 0
lib/timeline/Graph2d.js View File

@ -124,6 +124,8 @@ function Graph2d (container, items, groups, options) {
if (items) {
this.setItems(items);
}
// draw for the first time
this._redraw();
}

+ 3
- 3
lib/timeline/Timeline.js View File

@ -157,9 +157,9 @@ function Timeline (container, items, groups, options) {
if (items) {
this.setItems(items);
}
else {
this._redraw();
}
// draw for the first time
this._redraw();
}
// Extend the functionality from Core

Loading…
Cancel
Save