Browse Source

table height style add comments

tumao 4 years ago
parent
commit
3abeeb1479
1 changed files with 2 additions and 0 deletions
  1. 2 0
      client/src/components/grid/Table.tsx

+ 2 - 0
client/src/components/grid/Table.tsx

@@ -141,7 +141,9 @@ const EnhancedTable: FC<TableType> = props => {
       const containerHeight: number = (containerRef.current as any)!
       const containerHeight: number = (containerRef.current as any)!
         .offsetHeight;
         .offsetHeight;
 
 
+      // table default row height is 54
       const rowHeight = 54;
       const rowHeight = 54;
+      // table header default height is 57
       const tableHeaderHeight: number = 57;
       const tableHeaderHeight: number = 57;
       if (rowHeight > 0) {
       if (rowHeight > 0) {
         const pageSize = Math.floor(
         const pageSize = Math.floor(