(props: TableLayoutProps)
| 18 | }; |
| 19 | |
| 20 | constructor(props: TableLayoutProps) { |
| 21 | super(props); |
| 22 | this.state = { |
| 23 | height: props.height || props.maxHeight || null, // Table's height or maxHeight prop |
| 24 | gutterWidth: getScrollBarWidth(), // scrollBar width |
| 25 | tableHeight: null, // Table's real height |
| 26 | headerHeight: null, // header's height of Table |
| 27 | bodyHeight: null, // body's height of Table |
| 28 | footerHeight: null, // footer's height of Table |
| 29 | fixedBodyHeight: null, // fixed body's height of Table |
| 30 | viewportHeight: null, // Table's real height without y scroll bar height |
| 31 | scrollX: null, // has x scroll bar |
| 32 | scrollY: null, // has y scroll bar |
| 33 | }; |
| 34 | |
| 35 | this.resizeListener = throttle(50, () => { |
| 36 | this.scheduleLayout(); |
| 37 | }); |
| 38 | } |
| 39 | |
| 40 | componentDidMount() { |
| 41 | this.el = this.table.el; |
nothing calls this directly
no test coverage detected