mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[PR #348] [CLOSED] Table.SetFixedColumnsWidth(): keep columns width fixed when scrolling #920
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#920
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/348
Author: @cespedes
Created: 9/23/2019
Status: ❌ Closed
Base:
master← Head:fixedColumnsWidth📝 Commits (1)
4a44464Added SetFixedColumnsWidth() to Table to keep columns width fixed when scrolling📊 Changes
2 files changed (+24 additions, -1 deletions)
View changed files
📝
demos/table/main.go(+1 -0)📝
table.go(+23 -1)📄 Description
Added a new method to Table, SetFixedWidth(), to calculate the maximum width of every column and maintaining it fixed, even if the displayed rows have smaller widths.
This will prevent the tables from changing columns width when scrolling.
This fixes issue #345
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.