diff --git a/superset-frontend/src/components/FilterableTable/FilterableTable.tsx b/superset-frontend/src/components/FilterableTable/FilterableTable.tsx index 97149073ba..46ceab4bb1 100644 --- a/superset-frontend/src/components/FilterableTable/FilterableTable.tsx +++ b/superset-frontend/src/components/FilterableTable/FilterableTable.tsx @@ -20,6 +20,7 @@ import JSONbig from 'json-bigint'; import React, { PureComponent } from 'react'; import JSONTree from 'react-json-tree'; import { + AutoSizer, Column, Grid, ScrollSync, @@ -58,8 +59,8 @@ function safeJsonObjectParse( } } -const SCROLL_BAR_HEIGHT = 15; const GRID_POSITION_ADJUSTMENT = 4; +const SCROLL_BAR_HEIGHT = 15; const JSON_TREE_THEME = { scheme: 'monokai', author: 'wimer hazenberg (http://www.monokai.nl)', @@ -479,39 +480,38 @@ export default class FilterableTable extends PureComponent< return ( - {({ onScroll, scrollTop }) => ( -
-
- -
-
- -
-
+ {({ onScroll, scrollLeft }) => ( + <> + + {({ width }) => ( +
+ + +
+ )} +
+ )}