From d1bcc0386bc5c1e8bede1c0dbe5506dc6f9c3200 Mon Sep 17 00:00:00 2001 From: Yilei Cai Date: Thu, 11 May 2017 18:15:40 -0700 Subject: [PATCH] make margin consistent --- superset/assets/visualizations/directed_force.js | 2 +- superset/assets/visualizations/nvd3_vis.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/superset/assets/visualizations/directed_force.js b/superset/assets/visualizations/directed_force.js index ce0fea1800627..b95829f9fd272 100644 --- a/superset/assets/visualizations/directed_force.js +++ b/superset/assets/visualizations/directed_force.js @@ -7,7 +7,7 @@ require('./directed_force.css'); const directedForceVis = function (slice, json) { const div = d3.select(slice.selector); const width = slice.width(); - const height = slice.height() - 25; + const height = slice.height(); const fd = slice.formData; const linkLength = fd.link_length || 200; const charge = fd.charge || -500; diff --git a/superset/assets/visualizations/nvd3_vis.js b/superset/assets/visualizations/nvd3_vis.js index d1c601f249b7a..413b6ae857c9f 100644 --- a/superset/assets/visualizations/nvd3_vis.js +++ b/superset/assets/visualizations/nvd3_vis.js @@ -299,7 +299,7 @@ function nvd3Vis(slice, payload) { } } - let height = slice.height() - 15; + let height = slice.height(); if (vizType === 'bullet') { height = Math.min(height, 50); }