| 223 | it("should update the fixed Grids' overflow when enableFixedColumnScroll or enableFixedRowScroll change", () => { |
| 224 | const props = { fixedColumnCount: 1, fixedRowCount: 1 }; |
| 225 | const getOverflow = () => { |
| 226 | const [, topRight, bottomLeft] = |
| 227 | document.body.querySelectorAll<HTMLElement>( |
| 228 | ".ReactVirtualized__Grid" |
| 229 | ); |
| 230 | return { |
| 231 | bottomLeftY: bottomLeft.style.overflowY, |
| 232 | topRightX: topRight.style.overflowX |
| 233 | }; |
| 234 | }; |
| 235 | |
| 236 | render(getMarkup(props)); |
| 237 | expect(getOverflow()).toEqual({ |