-
-
Notifications
You must be signed in to change notification settings - Fork 77
Description
Describe the bug
VGrid
sets min-width
and min-height
on the virtual cell based on the initial measured contents.
If I later resize my columns or rows (using an interaction that involves dragging some handle in the header), this min size is not updated. The upshot is that I cannot shrink my row or column: the inner content does appear smaller, but the min-width
on the parent element does not update.
To Reproduce
Here is a video of my component. To reproduce yourself, you could add some state to change the width or height of a cell (or row/column) after rendering it.
vgrid-min-width-bug.mp4
Expected behavior
I would expect the resize observer to catch this and update the min-width accordingly.
Platform:
- OS: [Windows, MacOS, Linux, Android, iOS]
- Browser: [Chrome, Firefox, Safari, Edge]
- Version of this package: [0.40.3]
- Version of framework: [react, vue, solid-js, svelte] [x.x.x]
Additional context
Add any other context about the problem here.
Might be related to #634