X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=plugins%2Frange-selector.js;h=d8b4285e94c721ee9bfa8d413a8c01e780483f76;hb=32c4d92b20add8400502e8d7b1337f2170fc987c;hp=089e64aabd6ce1ec6dfd13d262395c96ed9f26a5;hpb=24e420411024c92bc458d10db8aba29f8ca64b73;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_ = {