Skip to content

Commit

Permalink
Fix nvd3 rendering bug around container
Browse files Browse the repository at this point in the history
(cherry picked from commit 68a4e15)
  • Loading branch information
mistercrunch authored and youngyjd committed Oct 17, 2018
1 parent c96d141 commit 9a0f395
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions superset/assets/src/visualizations/nvd3_vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,12 @@ export default function nvd3Vis(slice, payload) {
// This is needed for correct chart dimensions if a chart is rendered in a hidden container
chart.width(width);
chart.height(height);

//XXX: quick fix while I figure out the real problem
if (slice.container === null) {
return;
}

slice.container.css('height', height + 'px');

svg
Expand Down

0 comments on commit 9a0f395

Please sign in to comment.