Browse Source

Fix unexpected transition for legend when inserted as element

pull/246/head
Masayuki Tanaka 11 years ago
parent
commit
1f8cd97c79
  1. 10
      c3.js
  2. 2
      c3.min.js

10
c3.js

@ -2485,7 +2485,15 @@
// parentNode will NOT be null when completed // parentNode will NOT be null when completed
if (selection.node().parentNode) { if (selection.node().parentNode) {
window.clearInterval(interval); window.clearInterval(interval);
redraw({withUpdateTranslate: true, withTransform: true, withUpdateXDomain: true, withUpdateOrgXDomain: true, withTransition: false, withLegend: true}); redraw({
withUpdateTranslate: true,
withTransform: true,
withUpdateXDomain: true,
withUpdateOrgXDomain: true,
withTransition: false,
withTransitionForTransform: false,
withLegend: true
});
selection.transition().style('opacity', 1); selection.transition().style('opacity', 1);
} }
}, 10); }, 10);

2
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save