Browse Source

- timeline axis using minor measure element to calculate size of major

axis label
v3_develop
Julian Kennedy 10 years ago
parent
commit
31ebe7514f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/timeline/component/TimeAxis.js

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

@ -385,7 +385,7 @@ TimeAxis.prototype._calculateCharSize = function () {
// determine the char width and height on the major axis
if (!this.dom.measureCharMajor) {
this.dom.measureCharMajor = document.createElement('DIV');
this.dom.measureCharMajor.className = 'text minor measure';
this.dom.measureCharMajor.className = 'text major measure';
this.dom.measureCharMajor.style.position = 'absolute';
this.dom.measureCharMajor.appendChild(document.createTextNode('0'));

Loading…
Cancel
Save