From 31ebe7514fefc91702a9bc5e5bdbaa08f34b1f6e Mon Sep 17 00:00:00 2001 From: Julian Kennedy Date: Tue, 30 Sep 2014 10:14:34 +0200 Subject: [PATCH] - timeline axis using minor measure element to calculate size of major axis label --- lib/timeline/component/TimeAxis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeline/component/TimeAxis.js b/lib/timeline/component/TimeAxis.js index 6762a468..45a0f89f 100644 --- a/lib/timeline/component/TimeAxis.js +++ b/lib/timeline/component/TimeAxis.js @@ -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'));