Skip to content

VGrid min-width/min-height interferes with resizable columns and rows #668

@giladgray

Description

@giladgray

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions