mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[PR #308] [MERGED] Don't throw away nodes after drawing #905
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#905
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/308
Author: @ollien
Created: 6/16/2019
Status: ✅ Merged
Merged: 6/26/2019
Merged by: @rivo
Base:
master← Head:fix-row-count📝 Commits (1)
a186f0aDon't throw away nodes after drawing TreeView📊 Changes
1 file changed (+1 additions, -7 deletions)
View changed files
📝
treeview.go(+1 -7)📄 Description
Currently, a tree's nodes are thrown away after drawing a
TreeView, and then reprocessed on every Draw. This causesGetRowCountto always return 0 from theTreeView. This PR fixes that problem by simply preserving the nodes between draws.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.