make margin consistent (#2753)

This commit is contained in:
yileic 2017-05-11 20:31:05 -07:00 committed by Maxime Beauchemin
parent 75abd1f44a
commit 818251fc85
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}