[GH-ISSUE #345] Table: be able to fix the width of each column when scrolling #258

Closed
opened 2026-03-04 01:03:24 +03:00 by kerem · 2 comments
Owner

Originally created by @cespedes on GitHub (Sep 13, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/345

In some cases, it would be nice to have the width of all the columns in a Table fixed, so that when using a large table with cells of different size and scroll through it, every column is always in the same place.

I needed this functionality for one of my projects, so I already forked tview and patched it in https://github.com/cespedes/tview adding a SetFixedColumnsWidth(bool) to *Table

It would be nice if you could merge it (or implement it in any other way), so that I could use the main repository instead of a fork.

Thank you,

Originally created by @cespedes on GitHub (Sep 13, 2019). Original GitHub issue: https://github.com/rivo/tview/issues/345 In some cases, it would be nice to have the width of all the columns in a Table fixed, so that when using a large table with cells of different size and scroll through it, every column is always in the same place. I needed this functionality for one of my projects, so I already forked tview and patched it in https://github.com/cespedes/tview adding a SetFixedColumnsWidth(bool) to *Table It would be nice if you could merge it (or implement it in any other way), so that I could use the main repository instead of a fork. Thank you,
kerem closed this issue 2026-03-04 01:03:24 +03:00
Author
Owner

@cespedes commented on GitHub (Sep 14, 2019):

After reviewing the issues, I see this one is similar to #119 but I still think it would be good if the package could provide one way to fix the columns width...

<!-- gh-comment-id:531491863 --> @cespedes commented on GitHub (Sep 14, 2019): After reviewing the issues, I see this one is similar to #119 but I still think it would be good if the package could provide one way to fix the columns width...
Author
Owner

@rivo commented on GitHub (Nov 21, 2019):

Thanks. I added this. It has a different name, though. See the referenced commit.

<!-- gh-comment-id:557247465 --> @rivo commented on GitHub (Nov 21, 2019): Thanks. I added this. It has a different name, though. See the referenced commit.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#258
No description provided.