mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #592] how to make this buttom menu in multilines when i resize the window? #434
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#434
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 @r9w-design on GitHub (Apr 26, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/592
how to make this buttom menu in multilines when i resize the window? cheers
@rivo commented on GitHub (Apr 27, 2021):
I didn't bother doing this in the demo because there is no automatic way to do it. I guess it could be done but it would probably complicate the demo code quite a bit. For these examples, I try to keep it simple.
If you have something similar in your application, maybe you could simply place it on two lines by default. Or, if you insist, you'll probably have to listen to draw events (with
Application.SetBeforeDrawFunc()) and then adjust yourFlexorGridaccording to the current screen size.@r9w-design commented on GitHub (Apr 29, 2021):
thank you