mirror of
https://github.com/apache/superset.git
synced 2026-06-05 15:49:27 +00:00
fix: height on grid results (#12558)
This commit is contained in:
@@ -463,43 +463,45 @@ export default class FilterableTable extends PureComponent<
|
||||
|
||||
// fix height of filterable table
|
||||
return (
|
||||
<ScrollSync>
|
||||
{({ onScroll, scrollTop }) => (
|
||||
<div
|
||||
style={{ height }}
|
||||
className="filterable-table-container Table"
|
||||
data-test="filterable-table-container"
|
||||
ref={this.container}
|
||||
>
|
||||
<div className="LeftColumn">
|
||||
<Grid
|
||||
cellRenderer={this.renderGridCellHeader}
|
||||
columnCount={orderedColumnKeys.length}
|
||||
columnWidth={getColumnWidth}
|
||||
height={rowHeight}
|
||||
rowCount={1}
|
||||
rowHeight={rowHeight}
|
||||
scrollTop={scrollTop}
|
||||
width={this.totalTableWidth}
|
||||
/>
|
||||
<StyledFilterableTable>
|
||||
<ScrollSync>
|
||||
{({ onScroll, scrollTop }) => (
|
||||
<div
|
||||
style={{ height }}
|
||||
className="filterable-table-container Table"
|
||||
data-test="filterable-table-container"
|
||||
ref={this.container}
|
||||
>
|
||||
<div className="LeftColumn">
|
||||
<Grid
|
||||
cellRenderer={this.renderGridCellHeader}
|
||||
columnCount={orderedColumnKeys.length}
|
||||
columnWidth={getColumnWidth}
|
||||
height={rowHeight}
|
||||
rowCount={1}
|
||||
rowHeight={rowHeight}
|
||||
scrollTop={scrollTop}
|
||||
width={this.totalTableWidth}
|
||||
/>
|
||||
</div>
|
||||
<div className="RightColumn">
|
||||
<Grid
|
||||
cellRenderer={this.renderGridCell}
|
||||
columnCount={orderedColumnKeys.length}
|
||||
columnWidth={getColumnWidth}
|
||||
height={totalTableHeight - rowHeight}
|
||||
onScroll={onScroll}
|
||||
overscanColumnCount={overscanColumnCount}
|
||||
overscanRowCount={overscanRowCount}
|
||||
rowCount={this.list.size}
|
||||
rowHeight={rowHeight}
|
||||
width={this.totalTableWidth}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="RightColumn">
|
||||
<Grid
|
||||
cellRenderer={this.renderGridCell}
|
||||
columnCount={orderedColumnKeys.length}
|
||||
columnWidth={getColumnWidth}
|
||||
height={totalTableHeight - rowHeight}
|
||||
onScroll={onScroll}
|
||||
overscanColumnCount={overscanColumnCount}
|
||||
overscanRowCount={overscanRowCount}
|
||||
rowCount={this.list.size}
|
||||
rowHeight={rowHeight}
|
||||
width={this.totalTableWidth}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</ScrollSync>
|
||||
)}
|
||||
</ScrollSync>
|
||||
</StyledFilterableTable>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user