mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #987] tview.Table shown incorrectly in tview.Grid #715
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#715
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 @darylhjd on GitHub (May 16, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/987
It seems that the table being shown even though the condition has not been met.
Problem occurs after upgrading to
33a1d271f2. Previous commits work as expected.Here is code that sets the condition for the table:
github.com/darylhjd/mangadesk@592a08c891/app/ui/manga_page.go (L100)The "Chapters" table is being shown incorrectly in the large view port.
Expected:


Large view port:
Small view port:
Actual:

Large view port:
Small view port:

As can be seen, the table that is meant to be shown in the small view port only is also shown in the large view port.
@rivo commented on GitHub (May 19, 2024):
Thanks for reporting this. Indeed, that last change to
Griddidn't check for duplicate items in the grid definition. The latest commit should fix this.@darylhjd commented on GitHub (May 24, 2024):
Thanks for the fix, but I tried it again and it seemed the issue persisted which caused me to find out that the order of adding items to the grid affected the result of the drawing.
I have opened another PR to address this https://github.com/rivo/tview/pull/991
@rivo commented on GitHub (May 24, 2024):
There was still a small bug in the last commit. The latest commit fixes this.