Browse Source

set height

ryan 6 years ago
parent
commit
8cb52ee626
1 changed files with 2 additions and 2 deletions
  1. 2 2
      public/app/plugins/panel/table2/TablePanel.tsx

+ 2 - 2
public/app/plugins/panel/table2/TablePanel.tsx

@@ -355,9 +355,9 @@ export class TablePanel extends PureComponent<Props> {
       <ReactTable
       <ReactTable
         data={rows}
         data={rows}
         columns={columns}
         columns={columns}
-        defaultPageSize={pageSize}
+        pageSize={pageSize}
         style={{
         style={{
-          height: height - 20 + 'px',
+          height: height + 'px',
         }}
         }}
         showPaginationBottom={showPaginationBottom}
         showPaginationBottom={showPaginationBottom}
         getTdProps={(state, rowInfo, column, instance) => {
         getTdProps={(state, rowInfo, column, instance) => {