mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #731] Scrolling table makes it loosing expansion #535
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#535
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?
Originally created by @p3g4asus on GitHub (May 9, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/731
Hi,


I developed an app that uses tview.Table with many linses (much more lines that can actually be visualized) with expansion set. Before scrolling, the expansion is correctly applied. If I scroll down to see "hidden" lines the table "looses" the expansion properties and the columns are not expanded (as if SetExpansion was not called). If I scroll again to the top, the expansion is applied again.
Scrolled to the top:
On line below the top:
Is this the expected behaviour?
Thanks in advance for support and thank you for this great library.
@rivo commented on GitHub (May 14, 2022):
Are you sure you have the expansion set on all rows? From what you're describing, it seems that you only have the expansion value set on cells in the first row. So when it goes out of view, nothing is expanded anymore.
@p3g4asus commented on GitHub (May 16, 2022):
You are absolutely right. I am sorry. That was my stupid fault. I am closing this issue.
Thanks again.
@rivo commented on GitHub (May 16, 2022):
No problem at all. I'm glad you were able to resolve it.