(size)
| 242 | contentAbove.style.height = `${offset}px`; |
| 243 | }, |
| 244 | resize(size) { |
| 245 | const rect = containerRects.get(element)!; |
| 246 | const newRect = { ...rect, ...size }; |
| 247 | containerRects.set(element, newRect); |
| 248 | element.style.height = `${newRect.height}px`; |
| 249 | element.style.width = `${newRect.width}px`; |
| 250 | act(() => { |
| 251 | setElementSize({ |
| 252 | element, |
| 253 | height: newRect.height, |
| 254 | width: newRect.width |
| 255 | }); |
| 256 | }); |
| 257 | }, |
| 258 | scroll(scrollTop, scrollLeft = element.scrollLeft) { |
| 259 | act(() => { |
| 260 | scrollTo(scrollLeft, scrollTop); |
nothing calls this directly
no test coverage detected