Column resizing doesn't respect `clientWidth`, bad experience with limited width tables

Aberta
#5,870 2 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@minwookshin já está trabalhando nisso.

Desde 3/10/2026.

  • #6608 de @minwookshin — aberto

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
react, typescript
Domínio
frontend

Direção de pesquisa

Comece com o exemplo oficial do React de tabela redimensionável em largura total vinculado na issue e reproduza o comportamento com espaço de tela limitado. Inspecione como o redimensionamento usa o elemento de cabeçalho e clientWidth; está concluído quando aumentos repetidos não criam mais uma largura armazenada excessiva e a coluna pode ser redimensionada para baixo normalmente.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

TanStack Table version

8.20.6

Framework/Library version

18.3

Describe the bug and the steps to reproduce it

Take the official full width resizable table example
https://tanstack.com/table/v8/docs/framework/react/examples/full-width-resizable-table

With limited screen space, grow a column, and then grow it some more.
You'll notice that the state now has a ridiculous amount of width, while the column is still fairly small visually.
This means that to size it down_ you now need to drag the handle left a lot without much result.

The solution would be to detect that dragging is over and set the column size to the header element's clientWidth, but I'm not entirely sure how to achieve that.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://tanstack.com/table/v8/docs/framework/react/examples/full-width-resizable-table

Screenshots or Videos (Optional)

Image

Do you intend to try to help solve this bug with your own PR?

No, because I do not have time to dig into it

Terms & Code of Conduct
  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Linguagem predominante
TypeScript
Estrelas
28.6k
Forks
3.6k
Merge médio
5h 55min
PRs com merge (30d)
3

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de TanStack/table

Todas as issues de TanStack/table

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.