Browse Source

Allow template labels

revert-3409-performance
Yotam Berkowitz 7 years ago
parent
commit
3cfa8d09fd
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      lib/timeline/component/TimeAxis.js

+ 3
- 3
lib/timeline/component/TimeAxis.js View File

@ -332,8 +332,7 @@ TimeAxis.prototype._repaintMinorText = function (x, text, orientation, className
this.dom.foreground.appendChild(label);
}
this.dom.minorTexts.push(label);
label.childNodes[0].nodeValue = text;
label.innerHTML = text;
label.style.top = (orientation == 'top') ? (this.props.majorLabelHeight + 'px') : '0';
@ -364,7 +363,8 @@ TimeAxis.prototype._repaintMajorText = function (x, text, orientation, className
if (!label) {
// create label
var content = document.createTextNode(text);
var content = document.createElement('div');
content.innerHTML = text;
label = document.createElement('div');
label.appendChild(content);
this.dom.foreground.appendChild(label);

Loading…
Cancel
Save