Browse Source

Fix unexpected negative width for event rect

pull/1069/merge
Masayuki Tanaka 10 years ago
parent
commit
0f55800e06
  1. 2
      c3.js
  2. 2
      c3.min.js
  3. 2
      src/size.js

2
c3.js

@ -2668,7 +2668,7 @@
}; };
c3_chart_internal_fn.getEventRectWidth = function () { c3_chart_internal_fn.getEventRectWidth = function () {
return this.xAxis.tickInterval(); return Math.max(0, this.xAxis.tickInterval());
}; };
c3_chart_internal_fn.getShapeIndices = function (typeFilter) { c3_chart_internal_fn.getShapeIndices = function (typeFilter) {

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

2
src/size.js

@ -100,5 +100,5 @@ c3_chart_internal_fn.getHorizontalAxisHeight = function (axisId) {
}; };
c3_chart_internal_fn.getEventRectWidth = function () { c3_chart_internal_fn.getEventRectWidth = function () {
return this.xAxis.tickInterval(); return Math.max(0, this.xAxis.tickInterval());
}; };

Loading…
Cancel
Save