mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #209] Grid and Flex RemoveItem not removing item #164
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#164
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 @tc-turner on GitHub (Dec 21, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/209
When trying to remove an item from either a Grid or Flex using RemoveItem, nothing happens.
Am I missing something obvious?
Terminal: iTerm2 Build 3.2.6, VSC 1.30.0 built in, Terminal 2.8.2
Go: 1.11.4
tview:
f93fbad8f8@rivo commented on GitHub (Dec 26, 2018):
Your button is removed but the page is not cleared as all that remains is an empty grid with a transparent background colour. See
NewGrid()for details:Here's your fixed code:
(I also removed some calls that didn't do anything like
SetRect()andSetFocus().)