X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=plugins%2Frange-selector.js;h=d8b4285e94c721ee9bfa8d413a8c01e780483f76;hb=7f6a719056e1da51c5a27727ac5341d6664de428;hp=089e64aabd6ce1ec6dfd13d262395c96ed9f26a5;hpb=a67b72369a6b7be63873258068082c139958e5dc;p=dygraphs.git diff --git a/plugins/range-selector.js b/plugins/range-selector.js index 089e64a..d8b4285 100644 --- a/plugins/range-selector.js +++ b/plugins/range-selector.js @@ -178,7 +178,7 @@ rangeSelector.prototype.resize_ = function() { var plotArea = this.dygraph_.layout_.getPlotArea(); var xAxisLabelHeight = 0; - if(this.getOption_('drawXAxis')){ + if(this.dygraph_.getOptionForAxis('drawAxis', 'x')) { xAxisLabelHeight = this.getOption_('xAxisHeight') || (this.getOption_('axisLabelFontSize') + 2 * this.getOption_('axisTickSize')); } this.canvasRect_ = {