[vis] fix pivot table scrolling when using more than 1 groupy col (#2674)

* fix scrolling when more than 1 groupby

* generalize function arguments

* fix pivot table scrolling in js

* add padding rules back

* linting
This commit is contained in:
Alanna Scott
2017-04-25 16:14:59 -07:00
committed by GitHub
parent 1df37e6e4d
commit 0bdc3010d8
3 changed files with 25 additions and 31 deletions

View File

@@ -81,11 +81,8 @@ class ChartContainer extends React.PureComponent {
// this should be a callback to clear the contents of the slice container
$(this.state.selector).html(data);
},
css: (dim, size) => {
// dimension can be 'height'
// pixel string can be '300px'
// should call callback to adjust height of chart
$(this.state.selector).css(dim, size);
css: (property, value) => {
$(this.state.selector).css(property, value);
},
height: getHeight,
show: () => { },