mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #401] [Windows] Resize event not sending updated width and height #294
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#294
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 @kvnxiao on GitHub (Feb 12, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/401
Compiling any of the demos on windows and trying to run the exe both directly and through cmd, powershell, and Windows Terminal, the UI does not refresh after resizing at all!
I have to manually press a key for the UI to refresh.
Editing
application.goand addingscreen.Sync()beforenewWidth, newHeight := screen.Size()seems to fix it?Not sure exactly why this issue is happening?
@tslocum commented on GitHub (Feb 15, 2020):
According to the tcell docs on Screen.Size:
Clear was not being called before retrieving the new screen size. I've submitted a PR to resolve this.
@rivo commented on GitHub (Aug 18, 2020):
I made the change that @tslocum suggested. This will hopefully solve your problem. If not, please open a new issue. (I might not see it here anymore.)