From: Jason Hollingsworth Date: Thu, 25 Oct 2012 15:32:51 +0000 (-0500) Subject: Fixed an issue with the chart title not being visible in IE8 and before. This does... X-Git-Tag: v1.0.0~176^2^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=077e41ff2b66f27bf3526aec5d2e1cdb0b217429;p=dygraphs.git Fixed an issue with the chart title not being visible in IE8 and before. This does the same thing as the axes labels (sets the zIndex to 10), to ensure it displays on top of the canvas. --- diff --git a/plugins/chart-labels.js b/plugins/chart-labels.js index 34775fc..2aaae26 100644 --- a/plugins/chart-labels.js +++ b/plugins/chart-labels.js @@ -123,6 +123,7 @@ chart_labels.prototype.layout = function(e) { this.title_div_.style.textAlign = 'center'; this.title_div_.style.fontSize = (g.getOption('titleHeight') - 8) + 'px'; this.title_div_.style.fontWeight = 'bold'; + this.title_div_.style.zIndex = 10; var class_div = document.createElement("div"); class_div.className = 'dygraph-label dygraph-title';