Browse Source

Merge pull request #357 from jupake/master

Timeline: Axis using minor measure element to calculate size of major axis label
v3_develop
Jos de Jong 10 years ago
parent
commit
38bab20a9e
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