Browse Source

Fix editable point item

codeClimate
Yotam Berkowitz 8 years ago
parent
commit
1053fc6305
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      lib/timeline/component/item/Item.js

+ 7
- 1
lib/timeline/component/item/Item.js View File

@ -327,7 +327,13 @@ Item.prototype._repaintDragCenter = function () {
dragCenter.className = 'vis-drag-center';
dragCenter.dragCenterItem = this;
this.dom.box.appendChild(dragCenter);
if (this.dom.box) {
this.dom.box.appendChild(dragCenter);
}
else if (this.dom.point) {
this.dom.point.appendChild(dragCenter);
}
this.dom.dragCenter = dragCenter;
}
else if (!this.selected && this.dom.dragCenter) {

Loading…
Cancel
Save