Browse Source

Fixed timeline not being redrawn after cancelled update event

css_transitions
jos 10 years ago
parent
commit
fdb3759e5e
2 changed files with 4 additions and 2 deletions
  1. +2
    -0
      HISTORY.md
  2. +2
    -2
      src/timeline/component/ItemSet.js

+ 2
- 0
HISTORY.md View File

@ -12,6 +12,8 @@ http://visjs.org
- Improved layout of box-items inside groups.
- Fixed option `autoResize` forcing a repaint of the Timeline with every check
rather than when the Timeline is actually resized.
- Fixed `select` event fired repeatedly when clicking an empty place on the
Timeline, deselecting selected items).
- Minor bug fixes.
- More examples added.

+ 2
- 2
src/timeline/component/ItemSet.js View File

@ -705,8 +705,8 @@ ItemSet.prototype._onDragEnd = function (event) {
if ('start' in props) props.item.data.start = props.start;
if ('end' in props) props.item.data.end = props.end;
this.stackDirty = true; // force re-stacking of all items next repaint
this.emit('change');
me.stackDirty = true; // force re-stacking of all items next repaint
me.emit('change');
}
});
}

Loading…
Cancel
Save