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

オープン
#5,870 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@minwookshin がすでに取り組んでいます。

2026年10月3日 から。

  • #6608 @minwookshin による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react, typescript
領域
frontend

調査の方向性

Issue にリンクされている公式の全幅リサイズ可能な React テーブルの例から始め、画面領域が限られている場合の動作を再現します。リサイズが header 要素と clientWidth をどのように使用しているかを確認します。繰り返し拡大しても保存される幅が過剰にならず、列を通常どおり縮小できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
TypeScript
スター
28.6k
フォーク
3.6k
平均マージ
5時間 55分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TanStack/table のほかの issue

TanStack/table の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。